From 87da8fc49def516459c23e51cd7a83ab299ebced Mon Sep 17 00:00:00 2001 From: Dragos Date: Tue, 1 Jun 2021 11:26:17 +0300 Subject: [PATCH] TRIX-27 no reload required after removing image --- app/src/app/catalog/images/images.component.ts | 6 +++--- .../networking/firewall-rules/firewall-rules.component.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/app/catalog/images/images.component.ts b/app/src/app/catalog/images/images.component.ts index 7df1e03..447f3ed 100644 --- a/app/src/app/catalog/images/images.component.ts +++ b/app/src/app/catalog/images/images.component.ts @@ -186,14 +186,14 @@ export class ImagesComponent implements OnInit, OnDestroy modalRef.content.confirm.pipe(first()).subscribe(() => { - this.toastr.info(`Removing machine "${image.name}"...`); + this.toastr.info(`Removing image "${image.name}"...`); this.catalogService.deleteImage(image.id) .subscribe(() => { - const index = this.images.findIndex(i => i.id === image.id); + const index = this.myImages.findIndex(i => i.id === image.id); if (index >= 0) - this.images.splice(index, 1); + this.myImages.splice(index, 1); this.applyFiltersAndSort(); diff --git a/app/src/app/networking/firewall-rules/firewall-rules.component.html b/app/src/app/networking/firewall-rules/firewall-rules.component.html index 5d0fe4a..c7b2570 100644 --- a/app/src/app/networking/firewall-rules/firewall-rules.component.html +++ b/app/src/app/networking/firewall-rules/firewall-rules.component.html @@ -11,7 +11,7 @@
- +