mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
combine edit into add/edit component
This commit is contained in:
@@ -32,7 +32,7 @@ import { FieldView } from 'jslib/models/view/fieldView';
|
||||
})
|
||||
export class ViewComponent implements OnChanges, OnDestroy {
|
||||
@Input() cipherId: string;
|
||||
@Output() onEditCipher = new EventEmitter<string>();
|
||||
@Output() onEditCipher = new EventEmitter<CipherView>();
|
||||
cipher: CipherView;
|
||||
showPassword: boolean;
|
||||
isPremium: boolean;
|
||||
@@ -75,7 +75,7 @@ export class ViewComponent implements OnChanges, OnDestroy {
|
||||
}
|
||||
|
||||
edit() {
|
||||
this.onEditCipher.emit(this.cipher.id);
|
||||
this.onEditCipher.emit(this.cipher);
|
||||
}
|
||||
|
||||
togglePassword() {
|
||||
|
||||
Reference in New Issue
Block a user