From 6cc2519092b9923d50177d94ded9911b6a6b71a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Mon, 29 Apr 2019 23:18:08 +0200 Subject: [PATCH] Fix user role check for export button --- .../components/shared/comment-list/comment-list.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/shared/comment-list/comment-list.component.html b/src/app/components/shared/comment-list/comment-list.component.html index be6b01827..883b7e74c 100644 --- a/src/app/components/shared/comment-list/comment-list.component.html +++ b/src/app/components/shared/comment-list/comment-list.component.html @@ -7,7 +7,7 @@ <button mat-button *ngIf="searchBox.value || isIconHide" (click)="hideCommentsList=false; searchBox.value=''; isIconHide=false"> <mat-icon>close</mat-icon> </button> - <button mat-button *ngIf="!searchBox.value && userRole === '1' && comments.length > 0" + <button mat-button *ngIf="!searchBox.value && userRole === 1 && comments.length > 0" [matTooltip]="'Export comments'" (click)="export(true)"> <mat-icon class="add-icon" id="export-icon">cloud_download</mat-icon> </button> -- GitLab