From 45bc7bf6ed3d153da94fe776800638f5dc107467 Mon Sep 17 00:00:00 2001 From: Avenue Date: Tue, 19 Sep 2023 00:07:57 +1000 Subject: [PATCH 1/6] feature: Modified the content --- .../src/components/DropdownMenuHTML.vue | 102 ++++++++---------- 1 file changed, 44 insertions(+), 58 deletions(-) diff --git a/art-gallery-frontend/src/components/DropdownMenuHTML.vue b/art-gallery-frontend/src/components/DropdownMenuHTML.vue index c96bb8d..9132adc 100644 --- a/art-gallery-frontend/src/components/DropdownMenuHTML.vue +++ b/art-gallery-frontend/src/components/DropdownMenuHTML.vue @@ -2,58 +2,51 @@ - + +
  • - - Exhibitions - + Exhibitions +
  • + + -
    - -
    @@ -61,25 +54,21 @@ import { mapState } from "vuex"; export default { - name: "DropdownMenuHTML", + name: "DropdownMenu", + computed: { + ...mapState(["account"]), + }, methods: { isAdmin() { - if (this.account.user) { - return this.account.user.role == "Admin"; - } + return this.account?.user?.role === "Admin"; }, }, - computed: { - ...mapState({ - account: (state) => state.account, - }), - }, }; + From a83729e3fc256b6b8838161e4f05cf278dc652dc Mon Sep 17 00:00:00 2001 From: Avenue Date: Tue, 19 Sep 2023 01:42:55 +1000 Subject: [PATCH 4/6] feature: ReUpdated the content --- .../src/components/CollapsibleMenuHTML.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/art-gallery-frontend/src/components/CollapsibleMenuHTML.vue b/art-gallery-frontend/src/components/CollapsibleMenuHTML.vue index f44caec..c2efa16 100644 --- a/art-gallery-frontend/src/components/CollapsibleMenuHTML.vue +++ b/art-gallery-frontend/src/components/CollapsibleMenuHTML.vue @@ -17,11 +17,11 @@ Artist of the Day -
  • - +
  • @@ -33,6 +33,7 @@ +