Browse Source

Tests fixed and translation fix.

pull/588/head
Sebastian 5 years ago
parent
commit
f5599327d7
  1. 2
      backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/HandleRules/RuleElementRegistryTests.cs
  2. 22
      frontend/app/shell/pages/internal/profile-menu.component.ts

2
backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/HandleRules/RuleElementRegistryTests.cs

@ -159,7 +159,7 @@ namespace Squidex.Domain.Apps.Core.Operations.HandleRules
Display = "Enum", Display = "Enum",
Description = null, Description = null,
Editor = RuleActionPropertyEditor.Dropdown, Editor = RuleActionPropertyEditor.Dropdown,
IsRequired = true, IsRequired = false,
Options = new[] { "Yes", "No" } Options = new[] { "Yes", "No" }
}); });

22
frontend/app/shell/pages/internal/profile-menu.component.ts

@ -22,6 +22,17 @@ interface State {
profileUrl: string; profileUrl: string;
} }
const ALL_LANGUAGES: ReadonlyArray<{ code: string, name: string }> = [{
code: 'en',
name: 'English'
}, {
code: 'nl',
name: 'Nederlands'
}, {
code: 'it',
name: 'Italiano'
}];
@Component({ @Component({
selector: 'sqx-profile-menu', selector: 'sqx-profile-menu',
styleUrls: ['./profile-menu.component.scss'], styleUrls: ['./profile-menu.component.scss'],
@ -37,16 +48,7 @@ export class ProfileMenuComponent extends StatefulComponent<State> implements On
public showSubmenu = false; public showSubmenu = false;
public language = this.uiOptions.get('more.culture'); public language = this.uiOptions.get('more.culture');
public languages: ReadonlyArray<{ code: string, name: string }> = [{ public languages = ALL_LANGUAGES;
code: 'en',
name: 'English'
}, {
code: 'nl',
name: 'Hollandske'
}, {
code: 'it',
name: 'Italiano'
}];
constructor(changeDetector: ChangeDetectorRef, apiUrl: ApiUrlConfig, constructor(changeDetector: ChangeDetectorRef, apiUrl: ApiUrlConfig,
public readonly uiState: UIState, public readonly uiState: UIState,

Loading…
Cancel
Save