fix(console): shortcut arrangement start page (#5161)

feat: shortcut arrangement start page

Co-authored-by: Max Peintner <max@caos.ch>
This commit is contained in:
Miguel Cabrerizo 2023-03-24 14:46:47 +01:00 committed by GitHub
parent 6567d81060
commit 9b2bf3c2de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,10 +178,10 @@ export class ShortcutsComponent implements OnDestroy {
} else { } else {
switch (listName) { switch (listName) {
case 'main': case 'main':
this.main = [PROFILE_SHORTCUT /* CREATE_ORG, CREATE_PROJECT, CREATE_USER */]; this.main = [CREATE_ORG, CREATE_PROJECT, CREATE_USER];
break; break;
case 'secondary': case 'secondary':
this.secondary = [CREATE_ORG, CREATE_PROJECT, CREATE_USER]; this.secondary = this.ALL_SHORTCUTS.filter((item) => item.i18nTitle === 'SETTINGS.GROUPS.APPEARANCE');
// [LOGIN_POLICY, PRIVATELABEL_POLICY].map((p) => { // [LOGIN_POLICY, PRIVATELABEL_POLICY].map((p) => {
// const policy: string = { // const policy: string = {
// i18nTitle: p.i18nTitle, // i18nTitle: p.i18nTitle,
@ -196,7 +196,7 @@ export class ShortcutsComponent implements OnDestroy {
// }); // });
break; break;
case 'third': case 'third':
this.third = this.ALL_SHORTCUTS.filter((item) => item.i18nTitle === 'SETTINGS.GROUPS.APPEARANCE'); this.third = [PROFILE_SHORTCUT];
// [LOGIN_TEXTS_POLICY, MESSAGE_TEXTS_POLICY].map((p) => { // [LOGIN_TEXTS_POLICY, MESSAGE_TEXTS_POLICY].map((p) => {
// const policy: ShortcutItem = { // const policy: ShortcutItem = {
// i18nTitle: p.i18nTitle, // i18nTitle: p.i18nTitle,