mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user