[ADF-5247] always enabled language picker (via extensions) (#1730)

* always enabled language picker

* fix tests

* update e2e tests

* fix aos plugin
This commit is contained in:
Denys Vuika
2020-10-15 08:57:04 +01:00
committed by GitHub
parent cfffde603c
commit 20f1752b48
25 changed files with 49 additions and 238 deletions

View File

@@ -28,7 +28,6 @@ import * as navigation from './navigation.rules';
import * as repository from './repository.rules';
export interface AcaRuleContext extends RuleContext {
languagePicker: boolean;
withCredentials: boolean;
}
@@ -457,15 +456,6 @@ export function canToggleFavorite(context: RuleContext): boolean {
].every(Boolean);
}
/**
* Checks if application should render language picker menu.
* JSON ref: `canShowLanguagePicker`
* @param context Rule execution context
*/
export function canShowLanguagePicker(context: AcaRuleContext): boolean {
return context.languagePicker;
}
/**
* Checks if application should render logout option.
* JSON ref: `canShowLogout`