Commit e0d554c5c6b4be3dc7d391822d233bb86be30287
1 parent
6bb9c082
Entities table actions improvement
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -188,7 +188,8 @@ | @@ -188,7 +188,8 @@ | ||
188 | width: (cellActionDescriptors.length * 40) + 'px' }"> | 188 | width: (cellActionDescriptors.length * 40) + 'px' }"> |
189 | <div fxHide fxShow.gt-md fxFlex fxLayout="row" fxLayoutAlign="end"> | 189 | <div fxHide fxShow.gt-md fxFlex fxLayout="row" fxLayoutAlign="end"> |
190 | <button mat-icon-button [disabled]="isLoading$ | async" | 190 | <button mat-icon-button [disabled]="isLoading$ | async" |
191 | - [fxShow]="actionDescriptor.isEnabled(entity)" *ngFor="let actionDescriptor of cellActionDescriptors" | 191 | + [style.visibility]="actionDescriptor.isEnabled(entity) ? 'visible' : 'hidden'" |
192 | + *ngFor="let actionDescriptor of cellActionDescriptors" | ||
192 | matTooltip="{{ actionDescriptor.nameFunction ? actionDescriptor.nameFunction(entity) : actionDescriptor.name }}" | 193 | matTooltip="{{ actionDescriptor.nameFunction ? actionDescriptor.nameFunction(entity) : actionDescriptor.name }}" |
193 | matTooltipPosition="above" | 194 | matTooltipPosition="above" |
194 | (click)="actionDescriptor.onAction($event, entity)"> | 195 | (click)="actionDescriptor.onAction($event, entity)"> |