1
0
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:
Kyle Spearrin
2018-01-26 14:56:54 -05:00
parent 298b12bf0d
commit eee5f6ff32
11 changed files with 94 additions and 110 deletions

View File

@@ -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() {