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 class="content">
<div clas="content"> <div class="inner-content">
<div class="inner-content"> <div class="box">
<p>Under construction</p> <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> </div>
</div> </div>

View File

@ -69,24 +69,7 @@
</button> </button>
</div> </div>
</div> </div>
<app-send-add-edit *ngIf="action == 'add' || action == 'edit'"></app-send-add-edit> <app-send-add-edit class="details" *ngIf="action == 'add' || action == 'edit'" [sendId]="sendId" [type]="selectedSendType"></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>
<div class="logo" *ngIf="!action"> <div class="logo" *ngIf="!action">
<div class="content"> <div class="content">
<div class="inner-content"> <div class="inner-content">

View File

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