mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
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.
This commit is contained in:
@@ -36,6 +36,7 @@ export class ViewComponent implements OnDestroy, OnInit {
|
|||||||
@Input() cipherId: string;
|
@Input() cipherId: string;
|
||||||
@Output() onEditCipher = new EventEmitter<CipherView>();
|
@Output() onEditCipher = new EventEmitter<CipherView>();
|
||||||
@Output() onCloneCipher = new EventEmitter<CipherView>();
|
@Output() onCloneCipher = new EventEmitter<CipherView>();
|
||||||
|
@Output() onShareCipher = new EventEmitter<CipherView>();
|
||||||
@Output() onDeletedCipher = new EventEmitter<CipherView>();
|
@Output() onDeletedCipher = new EventEmitter<CipherView>();
|
||||||
@Output() onRestoredCipher = new EventEmitter<CipherView>();
|
@Output() onRestoredCipher = new EventEmitter<CipherView>();
|
||||||
|
|
||||||
@@ -114,6 +115,10 @@ export class ViewComponent implements OnDestroy, OnInit {
|
|||||||
this.onCloneCipher.emit(this.cipher);
|
this.onCloneCipher.emit(this.cipher);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
share() {
|
||||||
|
this.onShareCipher.emit(this.cipher);
|
||||||
|
}
|
||||||
|
|
||||||
async delete(): Promise<boolean> {
|
async delete(): Promise<boolean> {
|
||||||
const confirmed = await this.platformUtilsService.showDialog(
|
const confirmed = await this.platformUtilsService.showDialog(
|
||||||
this.i18nService.t(this.cipher.isDeleted ? 'permanentlyDeleteItemConfirmation' : 'deleteItemConfirmation'),
|
this.i18nService.t(this.cipher.isDeleted ? 'permanentlyDeleteItemConfirmation' : 'deleteItemConfirmation'),
|
||||||
|
|||||||
Reference in New Issue
Block a user