feat(back): add admin setting to disable external event feature

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-09-01 18:16:06 +02:00
parent af670f3947
commit f6611e8eb5
8 changed files with 48 additions and 2 deletions

View File

@@ -72,6 +72,7 @@ export const CONFIG = gql`
features {
groups
eventCreation
eventExternal
antispam
}
restrictions {
@@ -370,6 +371,7 @@ export const FEATURES = gql`
features {
groups
eventCreation
eventExternal
antispam
}
}

View File

@@ -96,6 +96,7 @@ export interface IConfig {
timezones: string[];
features: {
eventCreation: boolean;
eventExternal: boolean;
groups: boolean;
antispam: boolean;
};

View File

@@ -246,7 +246,10 @@
</o-radio>
</div>-->
<o-field :label="t('External registration')">
<o-field
:label="t('External registration')"
v-if="features?.eventExternal"
>
<o-switch v-model="externalParticipation">
{{
t("I want to manage the registration with an external provider")
@@ -260,6 +263,7 @@
type="url"
v-model="event.externalParticipationUrl"
:placeholder="t('External provider URL')"
required
/>
</o-field>