From a3195625a1bcc12fc8fa4d0a98edf276b816edd1 Mon Sep 17 00:00:00 2001 From: satikaj <117552851+satikaj@users.noreply.github.com> Date: Tue, 28 May 2024 18:45:57 +1000 Subject: [PATCH] fix: allow admins to view units --- .../task-dropdown.component.html | 80 ++++++++----------- src/app/home/states/home/home.component.html | 43 +++++++++- src/app/home/states/home/home.component.ts | 20 ++++- 3 files changed, 94 insertions(+), 49 deletions(-) diff --git a/src/app/common/header/task-dropdown/task-dropdown.component.html b/src/app/common/header/task-dropdown/task-dropdown.component.html index b2fbb939c..506e9a517 100644 --- a/src/app/common/header/task-dropdown/task-dropdown.component.html +++ b/src/app/common/header/task-dropdown/task-dropdown.component.html @@ -113,55 +113,41 @@ Explorer } - @if (unitRole.role !== 'Admin') { - - } - @if (unitRole.role !== 'Admin') { - - } + + - @if (unitRole.role !== 'Admin') { - - } - @if (unitRole.role !== 'Admin') { - - } - @if (unitRole.role !== 'Admin') { - - } - @if (unitRole.role !== 'Admin') { - - } + + + + - @if (unitRole.role !== 'Admin') { - - } + @if (unitRole.role === 'Convenor' || unitRole.role === 'Admin') {