activate live statistics via settings
All checks were successful
deploy / build-and-deploy (push) Successful in 16s
All checks were successful
deploy / build-and-deploy (push) Successful in 16s
This commit is contained in:
@@ -71,6 +71,17 @@
|
||||
onChange: dynamicSettings.signupSetDisabledSubtext
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Live-Statistiken',
|
||||
entries: [
|
||||
{
|
||||
name: 'Aktiviert',
|
||||
type: 'checkbox',
|
||||
value: dynamicSettings.liveStatisticsEnabled(),
|
||||
onChange: dynamicSettings.liveStatisticsSetEnabled
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ export class DynamicSettings {
|
||||
|
||||
/* signup enabled */
|
||||
signupEnabled = () => this.get(SettingKey.SignupEnabled, false);
|
||||
signupSetEnabled = (active: boolean) => this.set(SettingKey.SignupEnabled, active);
|
||||
signupSetEnabled = (enabled: boolean) => this.set(SettingKey.SignupEnabled, enabled);
|
||||
|
||||
/* signup info text */
|
||||
signupInfoText = () => this.get(SettingKey.SignupInfoMessage, '');
|
||||
@@ -45,4 +45,8 @@ export class DynamicSettings {
|
||||
/* signup disabled subtext */
|
||||
signupDisabledSubtext = () => this.get(SettingKey.SignupDisabledSubMessage, '');
|
||||
signupSetDisabledSubtext = (text: string) => this.set(SettingKey.SignupDisabledSubMessage, text);
|
||||
|
||||
/* live statistics enabled */
|
||||
liveStatisticsEnabled = () => this.get(SettingKey.LiveStatisticsEnabled, false);
|
||||
liveStatisticsSetEnabled = (enabled: boolean) => this.set(SettingKey.LiveStatisticsEnabled, enabled);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user