Add createSite feature so user can disable site creation #813 (#814)

Co-authored-by: Florent FAYOLLE <florent.fayolle@beta.gouv.fr>
This commit is contained in:
Florent
2024-01-08 17:26:30 +01:00
committed by GitHub
parent a311b8b3e5
commit a59132108f
4 changed files with 12 additions and 9 deletions

View File

@@ -42,12 +42,14 @@ export function buildSiteSwitcher(appModel: AppModel) {
testId('org'),
)
),
menuItem(
() => appModel.showNewSiteModal(),
menuIcon('Plus'),
t("Create new team site"),
testId('create-new-site'),
),
dom.maybe(() => isFeatureEnabled("createSite"), () => [
menuItem(
() => appModel.showNewSiteModal(),
menuIcon('Plus'),
t("Create new team site"),
testId('create-new-site'),
)
]),
];
}