Browse Source
Merge pull request #13426 from ArtemDzhereleiko/AD/bug-fix/header-action/advanced-btn-style
Fixed validation advanced button style for widget header action setting
pull/13556/head
Igor Kulikov
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
0 deletions
-
ui-ngx/src/app/modules/home/components/widget/action/widget-action-dialog.component.ts
|
|
|
@ -162,6 +162,7 @@ export class WidgetActionDialogComponent extends DialogComponent<WidgetActionDia |
|
|
|
if (value === 'headerButton') { |
|
|
|
this.widgetActionFormGroup.get('buttonType').enable({emitEvent: false}); |
|
|
|
this.widgetActionFormGroup.get('buttonColor').enable({emitEvent: false}); |
|
|
|
this.widgetActionFormGroup.get('customButtonStyle').enable({emitEvent: false}); |
|
|
|
this.widgetHeaderButtonValidators(true); |
|
|
|
} else { |
|
|
|
this.widgetActionFormGroup.get('buttonType').disable({emitEvent: false}); |
|
|
|
@ -169,6 +170,7 @@ export class WidgetActionDialogComponent extends DialogComponent<WidgetActionDia |
|
|
|
this.widgetActionFormGroup.get('buttonColor').disable({emitEvent: false}); |
|
|
|
this.widgetActionFormGroup.get('buttonFillColor').disable({emitEvent: false}); |
|
|
|
this.widgetActionFormGroup.get('buttonBorderColor').disable({emitEvent: false}); |
|
|
|
this.widgetActionFormGroup.get('customButtonStyle').disable({emitEvent: false}); |
|
|
|
} |
|
|
|
}); |
|
|
|
this.widgetActionFormGroup.get('useShowWidgetActionFunction').valueChanges.pipe( |
|
|
|
|