Browse Source
Merge pull request #12947 from ArtemDzhereleiko/AD/hot-fix/default-header-widget-action
Hotfix for header action
pull/12958/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
10 additions and
10 deletions
-
ui-ngx/src/app/modules/home/components/widget/widget-container.component.html
|
|
|
@ -104,16 +104,6 @@ |
|
|
|
|
|
|
|
<ng-template #widgetHeaderActionButton let-action="action" let-last="last"> |
|
|
|
@switch (action.buttonType) { |
|
|
|
@case (widgetHeaderActionButtonType.icon) { |
|
|
|
<button mat-icon-button |
|
|
|
[style]="action.customButtonStyle" |
|
|
|
[class.!hidden]="isEdit" |
|
|
|
(click)="action.onAction($event)" |
|
|
|
matTooltip="{{ action.displayName }}" |
|
|
|
matTooltipPosition="above"> |
|
|
|
<tb-icon [style.color]="action.buttonColor">{{ action.icon }}</tb-icon> |
|
|
|
</button> |
|
|
|
} |
|
|
|
@case (widgetHeaderActionButtonType.miniFab) { |
|
|
|
<button mat-mini-fab |
|
|
|
[style]="action.customButtonStyle" |
|
|
|
@ -175,5 +165,15 @@ |
|
|
|
<span [style.color]="action.buttonColor">{{ action.displayName }}</span> |
|
|
|
</button> |
|
|
|
} |
|
|
|
@default { |
|
|
|
<button mat-icon-button |
|
|
|
[style]="action.customButtonStyle" |
|
|
|
[class.!hidden]="isEdit" |
|
|
|
(click)="action.onAction($event)" |
|
|
|
matTooltip="{{ action.displayName }}" |
|
|
|
matTooltipPosition="above"> |
|
|
|
<tb-icon [style.color]="action.buttonColor">{{ action.icon }}</tb-icon> |
|
|
|
</button> |
|
|
|
} |
|
|
|
} |
|
|
|
</ng-template> |
|
|
|
|