Browse Source

UI: convert tb-details-buttons on ContactBasedComponent subclasses to mat-stroked-button

Follow-up to the EntityComponent sweep — ContactBasedComponent extends EntityComponent transitively, so tenant.component.html (4 buttons) and customer.component.html (8 buttons) were missed. Same one-for-one raised → stroked replacement inside the .tb-details-buttons block.
pull/15888/head
Igor Kulikov 3 weeks ago
parent
commit
ba53a04b04
  1. 16
      ui-ngx/src/app/modules/home/pages/customer/customer.component.html
  2. 8
      ui-ngx/src/app/modules/home/pages/tenant/tenant.component.html

16
ui-ngx/src/app/modules/home/pages/customer/customer.component.html

@ -16,52 +16,52 @@
-->
<div class="tb-details-buttons xs:flex xs:flex-col">
<button mat-raised-button color="primary"
<button mat-stroked-button color="primary"
[disabled]="(isLoading$ | async)"
(click)="onEntityAction($event, 'open')"
[class.!hidden]="isEdit || isDetailsPage">
{{'common.open-details-page' | translate }}
</button>
<button mat-raised-button color="primary"
<button mat-stroked-button color="primary"
[disabled]="(isLoading$ | async)"
(click)="onEntityAction($event, 'manageUsers')"
[class.!hidden]="isEdit || isPublic">
{{'customer.manage-users' | translate }}
</button>
<button mat-raised-button color="primary"
<button mat-stroked-button color="primary"
[disabled]="(isLoading$ | async)"
(click)="onEntityAction($event, 'manageAssets')"
[class.!hidden]="isEdit">
{{'customer.manage-assets' | translate }}
</button>
<button mat-raised-button color="primary"
<button mat-stroked-button color="primary"
[disabled]="(isLoading$ | async)"
(click)="onEntityAction($event, 'manageDevices')"
[class.!hidden]="isEdit">
{{'customer.manage-devices' | translate }}
</button>
<button mat-raised-button color="primary"
<button mat-stroked-button color="primary"
[disabled]="(isLoading$ | async)"
(click)="onEntityAction($event, 'manageDashboards')"
[class.!hidden]="isEdit">
{{'customer.manage-dashboards' | translate }}
</button>
@if (edgesSupportEnabled()) {
<button mat-raised-button color="primary"
<button mat-stroked-button color="primary"
[disabled]="(isLoading$ | async)"
(click)="onEntityAction($event, 'manageEdges')"
[class.!hidden]="isEdit">
{{'customer.manage-edges' | translate }}
</button>
}
<button mat-raised-button color="primary"
<button mat-stroked-button color="primary"
[disabled]="(isLoading$ | async)"
(click)="onEntityAction($event, 'delete')"
[class.!hidden]="hideDelete() || isEdit || isPublic">
{{'customer.delete' | translate }}
</button>
<div class="flex flex-row xs:flex-col">
<button mat-raised-button
<button mat-stroked-button
ngxClipboard
(cbOnSuccess)="onCustomerIdCopied($event)"
[cbContent]="entity?.id?.id"

8
ui-ngx/src/app/modules/home/pages/tenant/tenant.component.html

@ -16,26 +16,26 @@
-->
<div class="tb-details-buttons xs:flex xs:flex-col">
<button mat-raised-button color="primary"
<button mat-stroked-button color="primary"
[disabled]="(isLoading$ | async)"
(click)="onEntityAction($event, 'open')"
[class.!hidden]="isEdit || isDetailsPage">
{{'common.open-details-page' | translate }}
</button>
<button mat-raised-button color="primary"
<button mat-stroked-button color="primary"
[disabled]="(isLoading$ | async)"
(click)="onEntityAction($event, 'manageTenantAdmins')"
[class.!hidden]="isEdit">
{{'tenant.manage-tenant-admins' | translate }}
</button>
<button mat-raised-button color="primary"
<button mat-stroked-button color="primary"
[disabled]="(isLoading$ | async)"
(click)="onEntityAction($event, 'delete')"
[class.!hidden]="hideDelete() || isEdit">
{{'tenant.delete' | translate }}
</button>
<div class="flex flex-row xs:flex-col">
<button mat-raised-button
<button mat-stroked-button
ngxClipboard
(cbOnSuccess)="onTenantIdCopied($event)"
[cbContent]="entity?.id?.id"

Loading…
Cancel
Save