From ecf4c656358466425e8f6f34c1676b569e127033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Tue, 27 Jun 2023 12:06:48 +0300 Subject: [PATCH] RED-6857: Don't send request after closing new file attr dialog --- ...ile-attributes-listing-screen.component.ts | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing-screen.component.ts b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing-screen.component.ts index 32b44d964..cf2f27b83 100644 --- a/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing-screen.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing-screen.component.ts @@ -64,6 +64,14 @@ export class FileAttributesListingScreenComponent extends ListingComponent attr.displayedInFileList).length; + } + + private get _numberOfFilterableAttrs(): number { + return this.entitiesService.all.filter(attr => attr.filterable).length; + } + constructor( readonly permissionsService: PermissionsService, private readonly _toaster: Toaster, @@ -76,14 +84,6 @@ export class FileAttributesListingScreenComponent extends ListingComponent attr.displayedInFileList).length; - } - - private get _numberOfFilterableAttrs(): number { - return this.entitiesService.all.filter(attr => attr.filterable).length; - } - async ngOnInit() { await this.#loadData(); } @@ -106,7 +106,9 @@ export class FileAttributesListingScreenComponent extends ListingComponent {