add api tokens to magic bar

This commit is contained in:
Andras Bacsai 2023-10-20 15:00:57 +02:00
parent 4855af7e57
commit e2a256b31c

View File

@ -58,7 +58,8 @@
<span v-else><span class="capitalize ">{{ <span v-else><span class="capitalize ">{{
sequenceState.sequence[sequenceState.currentActionIndex] }}</span> name sequenceState.sequence[sequenceState.currentActionIndex] }}</span> name
will be: will be:
<span class="inline-block text-warning">randomly generated (type to change)</span> <span class="inline-block text-warning">randomly generated (type to
change)</span>
</span> </span>
</span> </span>
</li> </li>
@ -414,6 +415,13 @@ const magicActions = [{
name: 'Goto: Boarding process', name: 'Goto: Boarding process',
icon: 'goto', icon: 'goto',
sequence: ['main', 'redirect'] sequence: ['main', 'redirect']
},
{
id: 24,
name: 'Goto: API Tokens',
tags: 'api,tokens,rest',
icon: 'goto',
sequence: ['main', 'redirect']
} }
] ]
const initialState = { const initialState = {
@ -644,6 +652,9 @@ async function redirect() {
case 23: case 23:
targetUrl.pathname = `/boarding` targetUrl.pathname = `/boarding`
break; break;
case 24:
targetUrl.pathname = `/security/api-tokens`
break;
} }
window.location.href = targetUrl; window.location.href = targetUrl;
} }