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:
@@ -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>
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user