feat(exports): Added page for exports. (TV-862)
Squashed commit of the following:
commit ee293ecbc763a2e85c383ee628539fb1dbcab515
Author: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se>
Date: Mon Nov 1 13:28:22 2021 +0100
Moved exports below administration
commit 7dd8756cd031501c302981e51c8aa519092b121c
Merge: ef229931 bdc526ce
Author: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se>
Date: Mon Nov 1 13:20:56 2021 +0100
Merge branch 'develop' into feature/TV-862-export-page
commit ef229931d978646a864e1d952044e6d31f2adf82
Author: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se>
Date: Fri Oct 29 11:59:06 2021 +0200
Added exporter page including routing and feature-toggling
This commit is contained in:
@@ -79,5 +79,6 @@
|
||||
<digi-icon-arrow-right *ngSwitchCase="iconType.ARROW_RIGHT" [ngClass]="iconClass"></digi-icon-arrow-right>
|
||||
<digi-icon-eye *ngSwitchCase="iconType.EYE" [ngClass]="iconClass"></digi-icon-eye>
|
||||
<digi-icon-eye-slash *ngSwitchCase="iconType.EYESLASH" [ngClass]="iconClass"></digi-icon-eye-slash>
|
||||
<digi-icon-archive *ngSwitchCase="iconType.ARCHIVE" [ngClass]="iconClass"></digi-icon-archive>
|
||||
</ng-container>
|
||||
</ng-template>
|
||||
|
||||
@@ -31,5 +31,12 @@
|
||||
Administration
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="sidebar__item" *ngIf="exportsVisible">
|
||||
<a [routerLink]="['/exporter']" [routerLinkActive]="['sidebar__link--active']" class="sidebar__link">
|
||||
<msfa-icon class="sidebar__icon" [icon]="iconType.ARCHIVE" size="xl"></msfa-icon>
|
||||
Exporter
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
@@ -36,4 +36,10 @@ export class SidebarComponent {
|
||||
)
|
||||
);
|
||||
}
|
||||
get exportsVisible(): boolean {
|
||||
return (
|
||||
this.activeFeatures.includes(Feature.EXPORTS) &&
|
||||
this.userRoles?.some(role => role.type === RoleEnum.MSFA_ReceiveDeltagare)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,4 +15,5 @@ export enum Feature {
|
||||
REPORTING_SIGNAL,
|
||||
REPORTING_PERIODISK_REDOVISNING,
|
||||
REPORTING_INFORMATIV_RAPPORT,
|
||||
EXPORTS,
|
||||
}
|
||||
|
||||
@@ -20,4 +20,5 @@ export enum IconType {
|
||||
ARROW_RIGHT = 'arrow-right',
|
||||
EYE = 'eye',
|
||||
EYESLASH = 'eyeslash',
|
||||
ARCHIVE = 'archive',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user