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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
7 additions and
1 deletions
-
ui-ngx/src/app/modules/home/pages/admin/white-labeling.component.html
-
ui-ngx/src/app/modules/home/pages/admin/white-labeling.component.ts
|
|
|
@ -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> |
|
|
|
|
|
|
|
@ -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); |
|
|
|
|