From d78e020b0c597df9e0e6f5a87268edbbb6afa49b Mon Sep 17 00:00:00 2001 From: Livio Amstutz Date: Mon, 2 May 2022 11:51:37 +0200 Subject: [PATCH] fix: remove old feature references in console (#3567) * feat: permit all features to every instance and organisation * remove old references in console --- .../accounts-card/accounts-card.component.ts | 2 +- .../app/modules/header/header.component.ts | 2 +- .../info-section/info-section.component.html | 7 +--- .../info-section/info-section.component.scss | 17 --------- .../info-section/info-section.component.ts | 1 - .../modules/sidenav/sidenav.component.html | 2 +- .../app/modules/sidenav/sidenav.component.ts | 1 - .../app/pages/actions/actions.component.ts | 12 ------ console/src/app/pages/iam/iam.component.ts | 14 ------- .../orgs/org-detail/org-detail.component.ts | 17 --------- .../apps/app-detail/app-detail.component.ts | 22 +++++------ .../auth-user-detail.component.ts | 14 +++---- .../user-detail/user-detail.component.ts | 18 ++++----- console/src/app/services/admin.service.ts | 37 ------------------- console/src/app/services/grpc-auth.service.ts | 8 ---- .../keyboard-shortcuts/keyboard-shortcuts.ts | 2 - console/src/app/services/mgmt.service.ts | 9 ----- 17 files changed, 31 insertions(+), 154 deletions(-) diff --git a/console/src/app/modules/accounts-card/accounts-card.component.ts b/console/src/app/modules/accounts-card/accounts-card.component.ts index 9d2d67044..9ce7caea0 100644 --- a/console/src/app/modules/accounts-card/accounts-card.component.ts +++ b/console/src/app/modules/accounts-card/accounts-card.component.ts @@ -81,7 +81,7 @@ export class AccountsCardComponent implements OnInit { public get isOnSystem(): boolean { return ( - ['/system', '/views', '/failed-events', '/system/members', '/system/features'].includes(this.router.url) || + ['/system', '/views', '/failed-events', '/system/members'].includes(this.router.url) || new RegExp('/system/policy/*').test(this.router.url) ); } diff --git a/console/src/app/modules/header/header.component.ts b/console/src/app/modules/header/header.component.ts index e620bd481..dfe26c0be 100644 --- a/console/src/app/modules/header/header.component.ts +++ b/console/src/app/modules/header/header.component.ts @@ -65,7 +65,7 @@ export class HeaderComponent implements OnDestroy { public get isOnSystem(): boolean { return ( - ['/system', '/views', '/failed-events', '/system/members', '/system/features'].includes(this.router.url) || + ['/system', '/views', '/failed-events', '/system/members'].includes(this.router.url) || new RegExp('/system/policy/*').test(this.router.url) ); } diff --git a/console/src/app/modules/info-section/info-section.component.html b/console/src/app/modules/info-section/info-section.component.html index 7a27c8c46..3b81d0bec 100644 --- a/console/src/app/modules/info-section/info-section.component.html +++ b/console/src/app/modules/info-section/info-section.component.html @@ -5,9 +5,4 @@
- - - {{'ACTIONS.GOTOFEATURES' | translate}} - - - \ No newline at end of file + diff --git a/console/src/app/modules/info-section/info-section.component.scss b/console/src/app/modules/info-section/info-section.component.scss index d4e28b618..e1e7cff16 100644 --- a/console/src/app/modules/info-section/info-section.component.scss +++ b/console/src/app/modules/info-section/info-section.component.scss @@ -29,23 +29,6 @@ padding: .25rem 0; } - .action { - font-size: 14px; - display: flex; - align-items: center; - text-decoration: none; - margin-left: .5rem; - border-radius: 50vw; - align-self: center; - padding: .25rem .5rem; - background: if($is-dark-theme, #00000030, #ffffff40); - font-weight: 600; - - i { - font-size: 1.2rem; - } - } - &.info { background-color: map-get($background, infosection); color: map-get($foreground, infosection); diff --git a/console/src/app/modules/info-section/info-section.component.ts b/console/src/app/modules/info-section/info-section.component.ts index c85fd3e55..79243f32e 100644 --- a/console/src/app/modules/info-section/info-section.component.ts +++ b/console/src/app/modules/info-section/info-section.component.ts @@ -14,5 +14,4 @@ export enum InfoSectionType { export class InfoSectionComponent { @Input() type: InfoSectionType = InfoSectionType.INFO; - @Input() featureLink: string | string[] = ''; } diff --git a/console/src/app/modules/sidenav/sidenav.component.html b/console/src/app/modules/sidenav/sidenav.component.html index d92d2ae04..20be54615 100644 --- a/console/src/app/modules/sidenav/sidenav.component.html +++ b/console/src/app/modules/sidenav/sidenav.component.html @@ -11,7 +11,7 @@ {{ 'USER.SETTINGS.TITLE' | translate }} - +