updated merchant tab
This commit is contained in:
parent
248ded53c0
commit
3d0d63b1d4
9 changed files with 75 additions and 51 deletions
|
|
@ -1,17 +1,24 @@
|
|||
<div class="merchants-container">
|
||||
<div class="merchant-list-header">
|
||||
<p>Merchants</p>
|
||||
<app-divider />
|
||||
</div>
|
||||
<mat-card appearance="outlined">
|
||||
<mat-card-header>
|
||||
<mat-card-title>Merchants</mat-card-title>
|
||||
</mat-card-header>
|
||||
|
||||
<div class="merchant-list">
|
||||
@for (merchant of merchants(); track merchant.id) {
|
||||
<div>{{ merchant.name }}</div>
|
||||
}
|
||||
@if (!merchants().length) {
|
||||
<div class="merchant-list-empty">
|
||||
No merchants to display
|
||||
<mat-card-content>
|
||||
<div class="new-merchant">
|
||||
<app-metadata-form (newMetaData)="createMerchant($event.name)" [editing]="true" [label]="'New Merchant'"/>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="merchant-list">
|
||||
@for (merchant of merchants(); track merchant.id) {
|
||||
<app-metadata-form [metadata]="merchant" (newMetaData)="updateMerchant($event)" />
|
||||
}
|
||||
@if (!merchants().length) {
|
||||
<div>
|
||||
No merchants to display
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue