mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[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:
@@ -483,24 +483,6 @@ describe('app.evaluators', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('canShowLanguagePicker', () => {
|
||||
it('should return true when property is true', () => {
|
||||
const context: any = {
|
||||
languagePicker: true
|
||||
};
|
||||
|
||||
expect(app.canShowLanguagePicker(context)).toBe(true);
|
||||
});
|
||||
|
||||
it('should return false when property is false', () => {
|
||||
const context: any = {
|
||||
languagePicker: false
|
||||
};
|
||||
|
||||
expect(app.canShowLanguagePicker(context)).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe('canShowLogout', () => {
|
||||
it('should return false when `withCredentials` property is true', () => {
|
||||
const context: any = {
|
||||
|
@@ -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`
|
||||
|
Reference in New Issue
Block a user