From 75ca9f9c13c54b7e348a97105a106b69d3224dce Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Tue, 15 Dec 2020 17:49:51 -0600 Subject: [PATCH] Move share button to view page (#229) It is not possible to edit and share at the same time. Browser extension currently utilizes this layout and it is confusing. This change is in conjunction with altering that UI. --- src/angular/components/view.component.ts | 5 +++++ 1 file changed, 5 insertions(+) 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'),