From b77a219e1935fcc2fe7aad97c5cec605a8ee68a4 Mon Sep 17 00:00:00 2001 From: gbrodman Date: Thu, 6 Jun 2024 16:35:20 -0400 Subject: [PATCH] Move domain-list search+download outside of loading bar (#2457) This means that they'll stick around even while we're loading domains from the server. https://b.corp.google.com/issues/343213150 --- .../src/app/domains/domainList.component.html | 114 ++++++++++-------- .../src/app/domains/domainList.component.scss | 14 +++ .../src/app/domains/domainList.component.ts | 9 +- 3 files changed, 79 insertions(+), 58 deletions(-) diff --git a/console-webapp/src/app/domains/domainList.component.html b/console-webapp/src/app/domains/domainList.component.html index 94bfcdcfb..9be39b8d4 100644 --- a/console-webapp/src/app/domains/domainList.component.html +++ b/console-webapp/src/app/domains/domainList.component.html @@ -1,18 +1,6 @@ diff --git a/console-webapp/src/app/domains/domainList.component.scss b/console-webapp/src/app/domains/domainList.component.scss index 9a72dd8b2..86b50ba0e 100644 --- a/console-webapp/src/app/domains/domainList.component.scss +++ b/console-webapp/src/app/domains/domainList.component.scss @@ -31,10 +31,24 @@ width: 100%; } + &__domains-table-parent { + position: relative; + } + &__domains-table { min-width: $min-width !important; } + &__domains-spinner { + align-items: center; + display: flex; + justify-content: center; + position: absolute; + height: 100%; + width: 100%; + background: rgba(255, 255, 255, 0.6); + } + .mat-mdc-paginator { min-width: $min-width !important; } diff --git a/console-webapp/src/app/domains/domainList.component.ts b/console-webapp/src/app/domains/domainList.component.ts index f4ac8dc4e..06cc5429e 100644 --- a/console-webapp/src/app/domains/domainList.component.ts +++ b/console-webapp/src/app/domains/domainList.component.ts @@ -58,11 +58,10 @@ export class DomainListComponent { private _snackBar: MatSnackBar ) { effect(() => { - if (this.registrarService.registrarId()) { - this.pageNumber = 0; - this.totalResults = 0; - this.reloadData(); - } + this.pageNumber = 0; + this.totalResults = 0; + this.reloadData(); + this.registrarService.registrarId(); }); }