From d67d72987a4530cdff34fd7d9b19381b9d3717f6 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 7 Jun 2023 17:32:59 +0200 Subject: [PATCH] new items to magic bar --- resources/js/components/MagicBar.vue | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/resources/js/components/MagicBar.vue b/resources/js/components/MagicBar.vue index a1dda84d5..6c4344e4d 100644 --- a/resources/js/components/MagicBar.vue +++ b/resources/js/components/MagicBar.vue @@ -306,6 +306,30 @@ const magicActions = [{ name: 'Goto: Command Center', icon: 'goto', sequence: ['main', 'redirect'] +}, +{ + id: 11, + name: 'Goto: Notifications', + icon: 'goto', + sequence: ['main', 'redirect'] +}, +{ + id: 12, + name: 'Goto: Profile', + icon: 'goto', + sequence: ['main', 'redirect'] +}, +{ + id: 13, + name: 'Goto: Teams', + icon: 'goto', + sequence: ['main', 'redirect'] +}, +{ + id: 14, + name: 'Goto: Switch Teams', + icon: 'goto', + sequence: ['main', 'redirect'] } ] const initialState = { @@ -498,6 +522,18 @@ async function redirect() { case 10: targetUrl.pathname = `/command-center` break; + case 11: + targetUrl.pathname = `/profile/team/notifications` + break; + case 12: + targetUrl.pathname = `/profile` + break; + case 13: + targetUrl.pathname = `/profile/team` + break; + case 14: + targetUrl.pathname = `/profile/team` + break; } window.location.href = targetUrl;