Skip to content

Commit

Permalink
feat: add show fingerprint phrase button to sidebar
Browse files Browse the repository at this point in the history
This is a temporary addition as in the future fingerprint should be
displayed in a dedicated banner
  • Loading branch information
Ldoppea committed Sep 3, 2021
1 parent 3b1b03a commit 7daecb0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/vault/groupings.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,12 @@ <h2>{{'folders' | i18n}}</h2>
</li>
</ul>
</ng-container>
<h2>{{'tools' | i18n}}</h2>
<div class="heading">
<h2>{{'tools' | i18n}}</h2>
<button appBlurClick (click)="showFingerprint()" appA11yTitle="{{'addFolder' | i18n}}" *ifFlag="CAN_SHARE_ORGANIZATION">
<i class="fa fa-plus fa-fw" aria-hidden="true"></i>
</button>
</div>
<ul>
<li [ngClass]="{active: importSelected }">
<a href="#" appStopClick appBlurClick (click)="selectImport()">
Expand Down
3 changes: 3 additions & 0 deletions src/app/vault/groupings.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,7 @@ export class GroupingsComponent extends BaseGroupingsComponent {
this.selectedCollectionId = this.prevSelection.selectedCollectionId;
}

async showFingerprint() {
this.broadcasterService.send({command: 'showFingerprintPhrase'});
}
}

0 comments on commit 7daecb0

Please sign in to comment.