feat(back): add admin setting to disable external event feature
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,6 +96,7 @@ export interface IConfig {
|
||||
timezones: string[];
|
||||
features: {
|
||||
eventCreation: boolean;
|
||||
eventExternal: boolean;
|
||||
groups: boolean;
|
||||
antispam: boolean;
|
||||
};
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user