[ACA-2948] Add process services extension in settings page (#1374)

* [ACA-2948] Add toggle in settings page for process services extension

* [ACA-2948] Remove console log

* [ACA-2948] Fix import
This commit is contained in:
arditdomi
2020-03-25 14:06:02 +00:00
committed by GitHub
parent de8c85dc48
commit dab3f670f0
13 changed files with 85 additions and 12 deletions

View File

@@ -30,6 +30,7 @@ import * as repository from './repository.rules';
export interface AcaRuleContext extends RuleContext {
languagePicker: boolean;
withCredentials: boolean;
processServices: boolean;
}
/**
@@ -546,3 +547,12 @@ export function canShowLanguagePicker(context: AcaRuleContext): boolean {
export function canShowLogout(context: AcaRuleContext): boolean {
return !context.withCredentials;
}
/**
* Checks if application should render process services extension.
* JSON ref: `canShowProcessServices`
* @param context Rule execution context
*/
export function canShowProcessServices(context: AcaRuleContext): boolean {
return context.processServices;
}