fix linting

This commit is contained in:
conblem
2025-06-17 08:23:23 +02:00
parent b563a7c3f3
commit 9c8cf24744
6 changed files with 17 additions and 23 deletions

View File

@@ -37,7 +37,6 @@
</a> </a>
</ng-template> </ng-template>
<cnsl-new-header></cnsl-new-header> <cnsl-new-header></cnsl-new-header>
<span class="fill-space"></span> <span class="fill-space"></span>

View File

@@ -1,9 +1,6 @@
<div class="upper-content"> <div class="upper-content">
<span class="dropdown-label">{{ 'MENU.INSTANCEOVERVIEW' | translate }}</span> <span class="dropdown-label">{{ 'MENU.INSTANCEOVERVIEW' | translate }}</span>
<a <a (click)="setInstance(instance)" mat-button class="dropdown-button"
(click)="setInstance(instance)"
mat-button
class="dropdown-button"
>{{ instance.name }} >{{ instance.name }}
<i class="las la-1x la-angle-right"></i> <i class="las la-1x la-angle-right"></i>
</a> </a>

View File

@@ -43,7 +43,6 @@
gap: 5px; gap: 5px;
} }
.dropdown-button { .dropdown-button {
height: 32px; height: 32px;
min-height: 32px; min-height: 32px;

View File

@@ -1,6 +1,5 @@
<cnsl-refresh-table [hideRefresh]="true" [loading]="listOrganizationsQuery.isPending()"> <cnsl-refresh-table [hideRefresh]="true" [loading]="listOrganizationsQuery.isPending()">
<cnsl-filter-org actions (filterChanged)="applySearchQuery($any($event), paginator)"> <cnsl-filter-org actions (filterChanged)="applySearchQuery($any($event), paginator)"> </cnsl-filter-org>
</cnsl-filter-org>
<ng-template actions cnslHasRole [hasRole]="['org.create', 'iam.write']"> <ng-template actions cnslHasRole [hasRole]="['org.create', 'iam.write']">
<a [routerLink]="['/orgs', 'create']" color="primary" mat-raised-button> <a [routerLink]="['/orgs', 'create']" color="primary" mat-raised-button>

View File

@@ -24,7 +24,8 @@
</div> </div>
<p class="user-sub cnsl-secondary-text"> <p class="user-sub cnsl-secondary-text">
{{ {{
(type === Type.HUMAN ? 'DESCRIPTIONS.USERS.HUMANS.DESCRIPTION' : 'DESCRIPTIONS.USERS.MACHINES.DESCRIPTION') | translate (type === Type.HUMAN ? 'DESCRIPTIONS.USERS.HUMANS.DESCRIPTION' : 'DESCRIPTIONS.USERS.MACHINES.DESCRIPTION')
| translate
}} }}
</p> </p>
<ng-template cnslHasRole [hasRole]="['user.write']" actions> <ng-template cnslHasRole [hasRole]="['user.write']" actions>
@@ -172,15 +173,15 @@
<ng-container matColumnDef="state"> <ng-container matColumnDef="state">
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'USER.DATA.STATE' | translate }}</th> <th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'USER.DATA.STATE' | translate }}</th>
<td mat-cell *matCellDef="let user" [routerLink]="user.userId ? ['/users', user.userId] : null"> <td mat-cell *matCellDef="let user" [routerLink]="user.userId ? ['/users', user.userId] : null">
<span <span
class="state" class="state"
[ngClass]="{ [ngClass]="{
active: user.state === UserState.ACTIVE, active: user.state === UserState.ACTIVE,
inactive: user.state === UserState.INACTIVE, inactive: user.state === UserState.INACTIVE,
}" }"
> >
{{ 'USER.STATEV2.' + user.state | translate }} {{ 'USER.STATEV2.' + user.state | translate }}
</span> </span>
</td> </td>
</ng-container> </ng-container>
@@ -209,10 +210,10 @@
(click)="deleteUser(user, authUser)" (click)="deleteUser(user, authUser)"
[disabled]="(canWrite$ | async) === false || (canDelete$ | async) === false" [disabled]="(canWrite$ | async) === false || (canDelete$ | async) === false"
[attr.data-e2e]=" [attr.data-e2e]="
(canWrite$ | async) === false || (canDelete$ | async) === false (canWrite$ | async) === false || (canDelete$ | async) === false
? 'disabled-delete-button' ? 'disabled-delete-button'
: 'enabled-delete-button' : 'enabled-delete-button'
" "
mat-icon-button mat-icon-button
> >
<i class="las la-trash"></i> <i class="las la-trash"></i>