1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

make sure it has not been already shared

This commit is contained in:
Kyle Spearrin
2018-10-23 10:37:56 -04:00
parent db5855aa4b
commit 3d5ed8f66a
2 changed files with 5 additions and 2 deletions

View File

@@ -318,7 +318,8 @@
</div> </div>
<div class="box list" *ngIf="editMode"> <div class="box list" *ngIf="editMode">
<div class="box-content single-line"> <div class="box-content single-line">
<a class="box-content-row" href="#" appStopClick appBlurClick (click)="share()"> <a class="box-content-row" href="#" appStopClick appBlurClick (click)="share()"
*ngIf="!cipher.organizationId">
<div class="row-main text-primary"> <div class="row-main text-primary">
<div class="icon text-primary"> <div class="icon text-primary">
<i class="fa fa-share-alt fa-lg fa-fw"></i> <i class="fa fa-share-alt fa-lg fa-fw"></i>

View File

@@ -86,7 +86,9 @@ export class AddEditComponent extends BaseAddEditComponent {
} }
share() { share() {
this.router.navigate(['/share-cipher'], { queryParams: { cipherId: this.cipher.id } }); if (this.cipher.organizationId == null) {
this.router.navigate(['/share-cipher'], { queryParams: { cipherId: this.cipher.id } });
}
} }
cancel() { cancel() {