24 lines
719 B
HTML
24 lines
719 B
HTML
<div class="merchants-container">
|
|
<mat-card appearance="outlined">
|
|
<mat-card-header>
|
|
<mat-card-title>Merchants</mat-card-title>
|
|
</mat-card-header>
|
|
|
|
<mat-card-content>
|
|
<div class="new-merchant">
|
|
<app-metadata-form (newMetaData)="createMerchant($event.name)" [editing]="true" [label]="'New Merchant'"/>
|
|
</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>
|