Made some changes to the mock-api
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
</ng-container>
|
||||
</button>
|
||||
</th>
|
||||
<th scope="col" class="employees-list__column-head">Ta bort</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -44,9 +45,12 @@
|
||||
</ng-container>
|
||||
</td>
|
||||
<td>
|
||||
<digi-button af-variation="tertiary" [af-aria-label]="'Ta bort konto för ' + employee.fullName" (afOnClick)="openDialog(true, employee)">
|
||||
<digi-button
|
||||
af-variation="tertiary"
|
||||
[afAriaLabel]="'Ta bort konto för ' + employee.fullName"
|
||||
(afOnClick)="openDialog(true, employee)"
|
||||
>
|
||||
<digi-icon-x style="--digi--ui--width--icon: 1.25rem" slot="icon"></digi-icon-x>
|
||||
Ta bort konto
|
||||
</digi-button>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -55,7 +59,8 @@
|
||||
</digi-table>
|
||||
|
||||
<!-- Modal/ Dialog window -->
|
||||
<digi-ng-dialog *ngIf="employeeSelected$ | async as employee"
|
||||
<digi-ng-dialog
|
||||
*ngIf="employeeSelected$ | async as employee"
|
||||
[afActive]="showDialog"
|
||||
(afOnInactive)="openDialog(false)"
|
||||
(afOnPrimaryClick)="openDialog(false)"
|
||||
@@ -65,9 +70,7 @@
|
||||
afPrimaryButtonText="Avbryt"
|
||||
afSecondaryButtonText="Radera personalkonto"
|
||||
>
|
||||
<p>
|
||||
Är du säker på att du vill ta bort personalkontot för {{employee?.fullName}}?
|
||||
</p>
|
||||
<p>Är du säker på att du vill ta bort personalkontot för {{employee?.fullName}}?</p>
|
||||
</digi-ng-dialog>
|
||||
|
||||
<digi-navigation-pagination
|
||||
|
||||
Reference in New Issue
Block a user