Skip to content

Commit cea7fbe

Browse files
committed
fix(test): add button should not be visible when user is not writer
Signed-off-by: Asitha de Silva <asithade@gmail.com>
1 parent ac6ae1a commit cea7fbe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/lfx-one/src/app/modules/project/dashboard/project-dashboard/project.component.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,10 @@ <h3 class="text-sm font-display text-gray-500">Recently Updated Committees</h3>
258258
<i class="fa-light fa-people-group text-4xl text-gray-400 mb-4"></i>
259259
<h3 class="text-lg font-medium text-gray-900 mb-2">No Committees</h3>
260260
<p class="text-gray-600 mb-4 text-sm">This project doesn't have any committees yet.</p>
261-
<lfx-button label="Add Committee" icon="fa-light fa-people-group" severity="secondary" size="small" (onClick)="openCreateDialog()">
262-
</lfx-button>
261+
@if (project()?.writer) {
262+
<lfx-button label="Add Committee" icon="fa-light fa-people-group" severity="secondary" size="small" (onClick)="openCreateDialog()">
263+
</lfx-button>
264+
}
263265
</div>
264266
</div>
265267
}

0 commit comments

Comments
 (0)