remove external settings (#1413)

This commit is contained in:
Denys Vuika
2020-04-15 12:33:54 +01:00
committed by GitHub
parent ea6c654e63
commit 6e33766fc4
3 changed files with 1 additions and 41 deletions

View File

@@ -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';
}

View File

@@ -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
}); });
} }
} }

View File

@@ -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"
}
} }
], ],