1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

deleted more or the send component

This commit is contained in:
addison
2021-02-03 23:50:41 -05:00
parent 631d053ef1
commit 5a71d5fdc8
3 changed files with 17 additions and 27 deletions

View File

@@ -21,7 +21,6 @@ enum Action {
None = '',
Add = 'add',
Edit = 'edit',
View = 'view',
}
@Component({
@@ -42,8 +41,8 @@ export class SendComponent extends BaseSendComponent implements OnInit {
}
addSend() {
this.action = Action.Add;
this.sendId = null;
this.action = Action.Add;
}
editSend(send: SendView) {
@@ -51,11 +50,11 @@ export class SendComponent extends BaseSendComponent implements OnInit {
}
selectSend(send: SendView) {
this.action = Action.View;
this.sendId = send.id;
this.action = Action.Edit;
}
get selectedSend() {
return this.sends.find((s) => s.id === this.sendId);
get selectedSendType() {
return this.sends.find((s) => s.id === this.sendId).type;
}
}