Skip to content

Commit

Permalink
Admin UI: Loading stops before data is shown (#447)
Browse files Browse the repository at this point in the history
* fix: loading should only stop after main request of page

* refactor: remove unnecessary property
  • Loading branch information
daniel-almeida-konkconsulting authored Dec 13, 2023
1 parent 02a64f3 commit ac73a3e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ export class ClientListComponent {
next: (data: PagedHttpResponseEnvelope<TierOverview>) => {
this.tiers = data.result;
},
complete: () => (this.loading = false),
error: (err: any) => {
this.loading = false;
const errorMessage = err.error?.error?.message ?? err.message;
this.snackBar.open(errorMessage, "Dismiss", {
verticalPosition: "top",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ export class IdentityListComponent {
public header: string;
public headerDescription: string;

public loading: boolean;

public constructor() {
this.header = "Identities";
this.headerDescription = "A list of existing Identities";

this.loading = false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ export class IdentitiesOverviewComponent {
next: (data: PagedHttpResponseEnvelope<TierOverview>) => {
this.tiers = data.result;
},
complete: () => (this.loading = false),
error: (err: any) => {
this.loading = false;
const errorMessage = err.error?.error?.message ?? err.message;
this.snackBar.open(errorMessage, "Dismiss", {
verticalPosition: "top",
Expand All @@ -145,9 +143,7 @@ export class IdentitiesOverviewComponent {
next: (data: PagedHttpResponseEnvelope<ClientOverview>) => {
this.clients = data.result;
},
complete: () => (this.loading = false),
error: (err: any) => {
this.loading = false;
const errorMessage = err.error?.error?.message ?? err.message;
this.snackBar.open(errorMessage, "Dismiss", {
verticalPosition: "top",
Expand Down

0 comments on commit ac73a3e

Please sign in to comment.