From 4cb0668f0969b61e9215aef42110872af1905f22 Mon Sep 17 00:00:00 2001 From: Michael Schramm Date: Thu, 11 Jun 2020 17:16:15 +0200 Subject: [PATCH] add ability to hide omf badge --- CHANGELOG.md | 1 + src/service/setting.service.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f7830da..628652c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - `DEFAULT_ROLE` -> `admin` | `superuser` | `user` - with `user` being the default, making it possible that new users can create their own forms after creating - `LOGIN_NOTE` -> markdown for Login Page, to show info text on login page +- `HIDE_CONTRIB` -> ability to hide contribution banner ### Changed ### Fixed diff --git a/src/service/setting.service.ts b/src/service/setting.service.ts index d0788fe..2ddb63a 100644 --- a/src/service/setting.service.ts +++ b/src/service/setting.service.ts @@ -13,6 +13,7 @@ export class SettingService { return [ 'SIGNUP_DISABLED', 'LOGIN_NOTE', + 'HIDE_CONTRIB', ].includes(key) } @@ -21,6 +22,7 @@ export class SettingService { case 'SIGNUP_DISABLED': case 'LOGIN_NOTE': case 'DEFAULT_ROLE': + case 'HIDE_CONTRIB': return new SettingModel(key, this.configService.get(key)) }