diff --git a/src/angular/components/add-edit.component.ts b/src/angular/components/add-edit.component.ts index 25071de329..3a2f42ed07 100644 --- a/src/angular/components/add-edit.component.ts +++ b/src/angular/components/add-edit.component.ts @@ -44,6 +44,8 @@ export class AddEditComponent implements OnInit { @Output() onDeletedCipher = new EventEmitter(); @Output() onCancelled = new EventEmitter(); @Output() onEditAttachments = new EventEmitter(); + @Output() onShareCipher = new EventEmitter(); + @Output() onEditCollections = new EventEmitter(); @Output() onGeneratePassword = new EventEmitter(); editMode: boolean = false; @@ -263,6 +265,14 @@ export class AddEditComponent implements OnInit { this.onEditAttachments.emit(this.cipher); } + share() { + this.onShareCipher.emit(this.cipher); + } + + editCollections() { + this.onEditCollections.emit(this.cipher); + } + async delete(): Promise { const confirmed = await this.platformUtilsService.showDialog( this.i18nService.t('deleteItemConfirmation'), this.i18nService.t('deleteItem'),