Item delete dialog updated to new look&feel

This commit is contained in:
Rene V. Vergara A. 2022-07-30 14:20:02 -05:00
parent fd1cb67f5d
commit 7dea52f5ef
3 changed files with 31 additions and 8 deletions

View file

@ -1,3 +1,13 @@
.text {
font-family: 'Spartan', sans-serif;
}
.itemDataTitle {
font-family: 'Spartan', sans-serif;
background: #ff5722;
color: white;
font-size: 26px;
text-align: center;
padding: 5px;
}

View file

@ -1,10 +1,20 @@
<h2 mat-dialog-title class="text">Delete item</h2>
<div class='itemDataTitle'>Delete Item</div>
<div class='container' style="margin-top: 20px;">
<mat-dialog-content >
<span style="line-height: 10px;"></span>
<mat-dialog-content>
<p class="text">Are you sure you want to delete "{{item.name}}"?</p>
</mat-dialog-content>
<mat-dialog-actions>
<button mat-raised-button (click)="close()" class="text">Cancel</button>
<button mat-raised-button color="primary" class="text" (click)="save()">Delete</button>
</mat-dialog-actions>
</mat-dialog-content>
<div style="display: flex;
justify-content: space-between;">
<button mat-raised-button class="text" (click)="close()">Close</button>
<button mat-raised-button class="text" color="primary" (click)="save()">Delete</button>
</div>
</div>

View file

@ -158,6 +158,9 @@ export class ItemListComponent implements OnInit{
// console.log('Deleting', val);
this.itemService.deleteItem(val);
this.items = [];
this.notifierService
.showNotification("Item deleted!!",
"Close","success");
}
this.itemService.getItems(this.owner.address);
this.itemsUpdate.subscribe((items) => {