From 3dbb108a2ca4133e0d707e7c33d880bedd14943a Mon Sep 17 00:00:00 2001 From: tykayn <15d65f2f-0b14-4f70-bf34-e130180ed62b@users.tedomum.net> Date: Tue, 30 Nov 2021 11:17:28 +0100 Subject: [PATCH] add env vars for creation form Signed-off-by: tykayn <15d65f2f-0b14-4f70-bf34-e130180ed62b@users.tedomum.net> --- src/environments/environment.prod.ts | 6 +++++- src/environments/environment.ts | 23 +++++++++++++---------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 6f223329..c9e0cea6 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -19,18 +19,22 @@ export const environment = { production: true, display_routes: false, showDemoWarning: false, + // creation form display_menu_creation: false, autofill_creation: false, autofill_participation: false, advanced_options_display: false, autofill_default_timeslices: false, + creation_email_is_required: true, + creation_display_admin_url: false, + creation_display_hour_per_day: false, // display or not the ability to choose time slices different per day autoSendNewPoll: false, interval_days_default: 7, showStepperShortcuts: false, expiresDaysDelay: 60, maxCountOfAnswers: 300, appTitle: 'FramaDate', - appVersion: '2.2.0', + appVersion: '2.2.1', appLogo: 'assets/img/logo.png', api: { versionToUse: 'apiV1', diff --git a/src/environments/environment.ts b/src/environments/environment.ts index a6ac8684..6f19fc2a 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -4,6 +4,14 @@ import { apiV1, endpoints } from './endpoints'; import { poll_conf } from './poll_conf'; +/* + * For easier debugging in development mode, you can import the following file + * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. + * + * This import should be commented out in production mode because it will have a negative impact + * on performance if an error is thrown. + */ +import 'zone.js/dist/zone-error'; endpoints.baseHref = apiV1.baseHref; @@ -16,14 +24,17 @@ export const environment = { advanced_options_display: false, autofill_participation: false, autofill_default_timeslices: false, + creation_email_is_required: true, + creation_display_admin_url: false, + creation_display_hour_per_day: false, // display or not the ability to choose time slices different per day showDemoWarning: false, autoSendNewPoll: false, showStepperShortcuts: false, interval_days_default: 7, expiresDaysDelay: 60, maxCountOfAnswers: 300, - appTitle: 'Framadate', - appVersion: '2.2.0', + appTitle: 'FramaDate', + appVersion: '2.2.1', appLogo: 'assets/img/logo.png', api: endpoints, poll: poll_conf, @@ -32,12 +43,4 @@ export const environment = { }, }; -/* - * For easier debugging in development mode, you can import the following file - * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. - * - * This import should be commented out in production mode because it will have a negative impact - * on performance if an error is thrown. - */ -import 'zone.js/dist/zone-error'; // Included with Angular CLI.