mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
remove external settings (#1413)
This commit is contained in:
@@ -546,12 +546,3 @@ export function canShowLanguagePicker(context: AcaRuleContext): boolean {
|
|||||||
export function canShowLogout(context: AcaRuleContext): boolean {
|
export function canShowLogout(context: AcaRuleContext): boolean {
|
||||||
return !context.withCredentials;
|
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 localStorage && localStorage.getItem('processServices') === 'true';
|
|
||||||
}
|
|
||||||
|
@@ -172,8 +172,7 @@ export class CoreExtensionsModule {
|
|||||||
'repository.isQuickShareEnabled': rules.hasQuickShareEnabled,
|
'repository.isQuickShareEnabled': rules.hasQuickShareEnabled,
|
||||||
'user.isAdmin': rules.isAdmin,
|
'user.isAdmin': rules.isAdmin,
|
||||||
'app.canShowLanguagePicker': rules.canShowLanguagePicker,
|
'app.canShowLanguagePicker': rules.canShowLanguagePicker,
|
||||||
'app.canShowLogout': rules.canShowLogout,
|
'app.canShowLogout': rules.canShowLogout
|
||||||
'app.canShowProcessServices': rules.canShowProcessServices
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -21,36 +21,6 @@
|
|||||||
"value": true
|
"value": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "extensions.ai.settings",
|
|
||||||
"name": "Extensions: AI",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"name": "Enable AI Extensions",
|
|
||||||
"key": "ai",
|
|
||||||
"type": "boolean",
|
|
||||||
"value": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"rules": {
|
|
||||||
"visible": "user.isAdmin"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "extensions.ps.settings",
|
|
||||||
"name": "Extensions: Process Services",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"name": "Enable Process Services Extensions",
|
|
||||||
"key": "processServices",
|
|
||||||
"type": "boolean",
|
|
||||||
"value": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"rules": {
|
|
||||||
"visible": "user.isAdmin"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user