1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01: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

@ -1,7 +1,15 @@
<div class="details">
<div clas="content">
<div class="inner-content">
<p>Under construction</p>
<div class="content">
<div class="inner-content">
<div class="box">
<div class="box-header">
{{'sendInformation' | i18n}}
</div>
<div class="box-content">
<div class="box-content-row">
<span class="row-label">{{'name' | i18n}}</span>
{{send.name}}
</div>
</div>
</div>
</div>
</div>

View File

@ -69,24 +69,7 @@
</button>
</div>
</div>
<app-send-add-edit *ngIf="action == 'add' || action == 'edit'"></app-send-add-edit>
<div id="view" class="details" *ngIf="action == 'view'">
<div class="content">
<div class="inner-content">
<div class="box">
<div class="box-header">
{{'sendInformation' | i18n}}
</div>
<div class="box-content">
<div class="box-content-row">
<span class="row-label">{{'name' | i18n}}</span>
{{selectedSend.name}}
</div>
</div>
</div>
</div>
</div>
</div>
<app-send-add-edit class="details" *ngIf="action == 'add' || action == 'edit'" [sendId]="sendId" [type]="selectedSendType"></app-send-add-edit>
<div class="logo" *ngIf="!action">
<div class="content">
<div class="inner-content">

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;
}
}