diff --git a/src/angular/components/view.component.ts b/src/angular/components/view.component.ts index cd8c0c4d95..76734978ea 100644 --- a/src/angular/components/view.component.ts +++ b/src/angular/components/view.component.ts @@ -36,6 +36,7 @@ export class ViewComponent implements OnDestroy, OnInit { @Input() cipherId: string; @Output() onEditCipher = new EventEmitter(); @Output() onCloneCipher = new EventEmitter(); + @Output() onShareCipher = new EventEmitter(); @Output() onDeletedCipher = new EventEmitter(); @Output() onRestoredCipher = new EventEmitter(); @@ -114,6 +115,10 @@ export class ViewComponent implements OnDestroy, OnInit { this.onCloneCipher.emit(this.cipher); } + share() { + this.onShareCipher.emit(this.cipher); + } + async delete(): Promise { const confirmed = await this.platformUtilsService.showDialog( this.i18nService.t(this.cipher.isDeleted ? 'permanentlyDeleteItemConfirmation' : 'deleteItemConfirmation'),