Browse Source

Improve usability by eliminating page reloads

pull/7518/head
Thomas Kaul 4 weeks ago
parent
commit
5bab95639e
  1. 19
      apps/client/src/app/components/admin-overview/admin-overview.html

19
apps/client/src/app/components/admin-overview/admin-overview.html

@ -46,16 +46,6 @@
<div class="col"> <div class="col">
<mat-card appearance="outlined" class="mb-3"> <mat-card appearance="outlined" class="mb-3">
<mat-card-content> <mat-card-content>
@if (isLoading) {
<ngx-skeleton-loader
animation="pulse"
class="my-3"
[theme]="{
height: '1.5rem',
width: '100%'
}"
/>
} @else {
<div class="d-flex my-3"> <div class="d-flex my-3">
<div class="w-50" i18n>User Signup</div> <div class="w-50" i18n>User Signup</div>
<div class="w-50"> <div class="w-50">
@ -63,6 +53,7 @@
color="primary" color="primary"
hideIcon="true" hideIcon="true"
[checked]="isUserSignupEnabled" [checked]="isUserSignupEnabled"
[disabled]="isLoading"
(change)="onEnableUserSignupModeChange($event)" (change)="onEnableUserSignupModeChange($event)"
/> />
</div> </div>
@ -75,6 +66,7 @@
color="primary" color="primary"
hideIcon="true" hideIcon="true"
[checked]="isReadOnlyMode" [checked]="isReadOnlyMode"
[disabled]="isLoading"
(change)="onReadOnlyModeChange($event)" (change)="onReadOnlyModeChange($event)"
/> />
</div> </div>
@ -87,6 +79,7 @@
color="primary" color="primary"
hideIcon="true" hideIcon="true"
[checked]="isDataGatheringEnabled" [checked]="isDataGatheringEnabled"
[disabled]="isLoading"
(change)="onEnableDataGatheringChange($event)" (change)="onEnableDataGatheringChange($event)"
/> />
</div> </div>
@ -116,17 +109,13 @@
mat-flat-button mat-flat-button
(click)="onSetSystemMessage()" (click)="onSetSystemMessage()"
> >
<ion-icon <ion-icon class="mr-1" name="information-circle-outline" />
class="mr-1"
name="information-circle-outline"
/>
<span i18n>Set Message</span> <span i18n>Set Message</span>
</button> </button>
} }
</div> </div>
</div> </div>
} }
}
<div class="d-flex my-3"> <div class="d-flex my-3">
<div class="w-50" i18n>Housekeeping</div> <div class="w-50" i18n>Housekeeping</div>
<div class="w-50"> <div class="w-50">

Loading…
Cancel
Save