System views updated

This commit is contained in:
Jose Alberto Hernandez
2025-05-24 22:46:53 -05:00
parent 7ab980c2ba
commit 14c539a605
34 changed files with 291 additions and 237 deletions
@@ -6,12 +6,12 @@
</mat-form-field>
</div>
<div #configurationsTable class="mat-elevation-z8">
<div #configurationsTable class="mat-elevation-z8 m-b-10">
<table mat-table [dataSource]="dataSource" matSort>
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.name' | translate }}</th>
<td mat-cell *matCellDef="let configuration">
{{ configuration.name }}&nbsp;&nbsp;
<span class="m-r-10">{{ configuration.name }}</span>
<fa-icon
*ngIf="configuration.description"
icon="question-circle"
@@ -1,12 +1,3 @@
table {
width: 100%;
}
// TODO: CONFIGURE THESE CLASSES GLOBALLY
.enabled {
color: #32cd32;
}
.disabled {
color: #f44366;
}
@@ -99,7 +99,7 @@ export class GlobalConfigurationsTabComponent implements OnInit, AfterViewInit {
*/
toggleStatus(configuration: any) {
this.systemService
.updateConfiguration(configuration.id, { enabled: !configuration.enabled })
.updateConfiguration(configuration.id, { enabled: configuration.enabled })
.subscribe((response: any) => {
configuration.enabled = response.changes.enabled;
if (configuration.name === SettingsService.businessDateConfigName) {