mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
[SM-554] hide admin onboarding items from non-admin (#4843)
* hide onboarding items if not admin * fix inconsistent padding
This commit is contained in:
parent
b7f465e552
commit
da9f4e1fb3
@ -10,11 +10,12 @@
|
||||
icon="bwi-cli"
|
||||
[completed]="view.tasks.createServiceAccount"
|
||||
>
|
||||
<span>
|
||||
<span class="tw-pl-1">
|
||||
{{ "downloadThe" | i18n }} <a bitLink routerLink="">{{ "smCLI" | i18n }}</a>
|
||||
</span>
|
||||
</sm-onboarding-task>
|
||||
<sm-onboarding-task
|
||||
*ngIf="userIsAdmin"
|
||||
[title]="'importSecrets' | i18n"
|
||||
[route]="['settings', 'import']"
|
||||
icon="bwi-download"
|
||||
@ -27,6 +28,7 @@
|
||||
[completed]="view.tasks.createSecret"
|
||||
></sm-onboarding-task>
|
||||
<sm-onboarding-task
|
||||
*ngIf="userIsAdmin"
|
||||
[title]="'createProject' | i18n"
|
||||
(click)="openNewProjectDialog()"
|
||||
icon="bwi-collection"
|
||||
|
@ -57,6 +57,7 @@ export class OverviewComponent implements OnInit, OnDestroy {
|
||||
private tableSize = 10;
|
||||
private organizationId: string;
|
||||
protected organizationName: string;
|
||||
protected userIsAdmin: boolean;
|
||||
|
||||
protected view$: Observable<{
|
||||
allProjects: ProjectListView[];
|
||||
@ -96,6 +97,7 @@ export class OverviewComponent implements OnInit, OnDestroy {
|
||||
.subscribe((org) => {
|
||||
this.organizationId = org.id;
|
||||
this.organizationName = org.name;
|
||||
this.userIsAdmin = org.isAdmin;
|
||||
});
|
||||
|
||||
const projects$ = combineLatest([
|
||||
|
Loading…
Reference in New Issue
Block a user