From 7d44f99ce6ea858a7fcace9dbb2943de2e8ccb6b Mon Sep 17 00:00:00 2001 From: Jeremy Wharton Date: Mon, 26 Jun 2023 23:36:42 -0500 Subject: [PATCH] web/satellite: add My Projects button to All Projects Dashboard This change adds a button to the header of the All Projects Dashboard that navigates the user to the My Projects page. Resolves #5996 Change-Id: Ie467e22c9039cf30fda1b8d815c1d6269f5ddf4f --- .../src/components/common/VButton.vue | 2 + .../all-dashboard/components/Heading.vue | 65 ++++++++++++++++--- 2 files changed, 57 insertions(+), 10 deletions(-) diff --git a/web/satellite/src/components/common/VButton.vue b/web/satellite/src/components/common/VButton.vue index 8db1fc35f..a14e8949e 100644 --- a/web/satellite/src/components/common/VButton.vue +++ b/web/satellite/src/components/common/VButton.vue @@ -65,6 +65,7 @@ import DownloadIcon from '@/../static/images/common/download.svg'; import FolderIcon from '@/../static/images/objects/newFolder.svg'; import ResourcesIcon from '@/../static/images/navigation/resources.svg'; import UploadIcon from '@/../static/images/common/upload.svg'; +import ProjectIcon from '@/../static/images/navigation/project.svg'; const props = withDefaults(defineProps<{ link?: string; @@ -121,6 +122,7 @@ const icons = new Map([ ['addcircle', AddCircleIcon], ['add', WhitePlusIcon], ['upload', UploadIcon], + ['project', ProjectIcon], ]); const iconComponent = computed((): string | undefined => icons.get(props.icon.toLowerCase())); diff --git a/web/satellite/src/views/all-dashboard/components/Heading.vue b/web/satellite/src/views/all-dashboard/components/Heading.vue index 4538889bd..a2e81a826 100644 --- a/web/satellite/src/views/all-dashboard/components/Heading.vue +++ b/web/satellite/src/views/all-dashboard/components/Heading.vue @@ -5,9 +5,20 @@