deleted more or the send component
This commit is contained in:
parent
631d053ef1
commit
5a71d5fdc8
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue