Browse Source

Fixed Save button not enabled when toggling 'Show connectivity dialog' in White labeling (#16275)

pull/16277/head
Maksym Tsymbarov 1 month ago
committed by GitHub
parent
commit
5a06602f09
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      ui-ngx/src/app/modules/home/pages/admin/white-labeling.component.html
  2. 6
      ui-ngx/src/app/modules/home/pages/admin/white-labeling.component.ts

2
ui-ngx/src/app/modules/home/pages/admin/white-labeling.component.html

@ -266,7 +266,7 @@
<mat-checkbox
[disabled]="wlSettings.get('hideConnectivityDialog')?.disabled"
[checked]="!wlSettings.get('hideConnectivityDialog')?.value"
(change)="wlSettings.get('hideConnectivityDialog')?.setValue(!$event.checked)">
(change)="onShowConnectivityDialogChange($event.checked)">
<div class="flex flex-col gap-1">
<div class="tb-wl-subtitle">{{ 'white-labeling.show-connectivity-dialog' | translate }}</div>
<div class="tb-wl-desc">{{ 'white-labeling.show-connectivity-dialog-desc' | translate }}</div>

6
ui-ngx/src/app/modules/home/pages/admin/white-labeling.component.ts

@ -386,6 +386,12 @@ export class WhiteLabelingComponent extends PageComponent implements OnInit, Has
});
}
onShowConnectivityDialogChange(checked: boolean): void {
const control = this.wlSettings.get('hideConnectivityDialog');
control.setValue(!checked);
control.markAsDirty();
}
private updatePaletteColors(): void {
this.selectedPrimaryColor = this.colorFromPalette(this.wlSettings.get('paletteSettings').get('primaryPalette').value);
this.selectedAccentColor = this.colorFromPalette(this.wlSettings.get('paletteSettings').get('accentPalette').value, false);

Loading…
Cancel
Save