make sure it has not been already shared
This commit is contained in:
parent
db5855aa4b
commit
3d5ed8f66a
|
@ -318,7 +318,8 @@
|
|||
</div>
|
||||
<div class="box list" *ngIf="editMode">
|
||||
<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="icon text-primary">
|
||||
<i class="fa fa-share-alt fa-lg fa-fw"></i>
|
||||
|
|
|
@ -86,7 +86,9 @@ export class AddEditComponent extends BaseAddEditComponent {
|
|||
}
|
||||
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue