Skip to content

Commit a54c480

Browse files
committed
fixed bug which didn't show add instance button if no instance exists
1 parent 09f6f07 commit a54c480

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

client/src/app/dashboard/table-all/table-all.component.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
-->
1818
<div *ngIf="dataSource.data.length == 0; else tableBlock">
1919
There are currently no instances running.
20+
<div class="col-lg-2 col-md-2 col-sm-2">
21+
<div *ngIf="authService.userIsAdmin()">
22+
<button mat-raised-button color="primary" id="addButton" (click)="openAddDialog()">Add
23+
Instance</button>
24+
</div>
25+
</div>
2026
</div>
2127
<ng-template #tableBlock>
2228
<div class="container">
@@ -149,7 +155,7 @@
149155

150156
</table>
151157
</div>
158+
<div *ngIf="!hideControlElements">
159+
<mat-paginator class="paginator" [pageSizeOptions]="[5, 10, 20]"></mat-paginator>
160+
</div>
152161
</ng-template>
153-
<div *ngIf="!hideControlElements">
154-
<mat-paginator class="paginator" [pageSizeOptions]="[5, 10, 20]"></mat-paginator>
155-
</div>

0 commit comments

Comments
 (0)