UI: Fixed advanced button style on edit action

This commit is contained in:
Artem Dzhereleiko 2025-06-05 11:08:50 +03:00
parent eddd329772
commit 7eaa16e66f

View File

@ -137,7 +137,7 @@ export class WidgetActionDialogComponent extends DialogComponent<WidgetActionDia
buttonColor: [{ value: this.action.buttonColor ?? this.defaultIconColor, disabled: true}, []], buttonColor: [{ value: this.action.buttonColor ?? this.defaultIconColor, disabled: true}, []],
buttonFillColor: [{ value: this.action.buttonFillColor ?? '#305680', disabled: true}, []], buttonFillColor: [{ value: this.action.buttonFillColor ?? '#305680', disabled: true}, []],
buttonBorderColor: [{ value: this.action.buttonBorderColor ?? '#0000001F', disabled: true}, []], buttonBorderColor: [{ value: this.action.buttonBorderColor ?? '#0000001F', disabled: true}, []],
customButtonStyle: [{ value: this.action.customButtonStyle ?? {}, disabled: true}, []], customButtonStyle: [this.action.customButtonStyle ?? {}, []],
useShowWidgetActionFunction: [this.action.useShowWidgetActionFunction], useShowWidgetActionFunction: [this.action.useShowWidgetActionFunction],
showWidgetActionFunction: [this.action.showWidgetActionFunction || 'return true;'], showWidgetActionFunction: [this.action.showWidgetActionFunction || 'return true;'],
widgetAction: [actionDescriptorToAction(toWidgetActionDescriptor(this.action)), Validators.required] widgetAction: [actionDescriptorToAction(toWidgetActionDescriptor(this.action)), Validators.required]