[ACA-1743] extension settings (#1399)

* upgrade tslib

* initial settings skeleton

* migrate language picker setting

* support string parameters

* remove process extensions workaround

* update extensions schema

* update docs

* unit tests

* fix unit test
This commit is contained in:
Denys Vuika
2020-04-06 18:58:41 +01:00
committed by GitHub
parent 2b910d5a15
commit 5a88c8c852
23 changed files with 425 additions and 127 deletions

View File

@@ -30,7 +30,6 @@ import * as repository from './repository.rules';
export interface AcaRuleContext extends RuleContext {
languagePicker: boolean;
withCredentials: boolean;
processServices: boolean;
}
/**
@@ -554,5 +553,5 @@ export function canShowLogout(context: AcaRuleContext): boolean {
* @param context Rule execution context
*/
export function canShowProcessServices(context: AcaRuleContext): boolean {
return context.processServices;
return localStorage && localStorage.getItem('processServices') === 'true';
}