new items to magic bar

This commit is contained in:
Andras Bacsai 2023-06-07 17:32:59 +02:00
parent 1fa077fc8a
commit d67d72987a

View File

@ -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;