fix: remove old feature references in console (#3567)

* feat: permit all features to every instance and organisation

* remove old references in console
This commit is contained in:
Livio Amstutz
2022-05-02 09:51:37 +00:00
committed by GitHub
parent 861cf07700
commit d78e020b0c
17 changed files with 31 additions and 154 deletions
@@ -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)
);
}
@@ -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)
);
}
@@ -5,9 +5,4 @@
<div class="info-section-content">
<ng-content></ng-content>
</div>
<a class="action" *ngIf="featureLink" actions [routerLink]="featureLink">
<span>{{'ACTIONS.GOTOFEATURES' | translate}}</span>
<i class="las la-angle-right"></i>
</a>
</div>
</div>
@@ -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);
@@ -14,5 +14,4 @@ export enum InfoSectionType {
export class InfoSectionComponent {
@Input() type: InfoSectionType = InfoSectionType.INFO;
@Input() featureLink: string | string[] = '';
}
@@ -11,7 +11,7 @@
<span>{{ 'USER.SETTINGS.TITLE' | translate }}</span>
</button>
<ng-container *ngFor="let setting of settingsList">
<ng-container *ngIf="setting.featureRequired; else btn">
<ng-container>
<button
(click)="value = setting.id"
class="sidenav-setting-list-element hide-on-mobile"
@@ -4,7 +4,6 @@ import { NG_VALUE_ACCESSOR } from '@angular/forms';
export interface SidenavSetting {
id: string;
i18nKey: string;
featureRequired: string[] | false;
}
@Component({