add api tokens to magic bar
This commit is contained in:
		
							parent
							
								
									4855af7e57
								
							
						
					
					
						commit
						e2a256b31c
					
				| @ -1,6 +1,6 @@ | |||||||
| <template> | <template> | ||||||
|     <Transition name="fade"> |     <Transition name="fade"> | ||||||
|         <div > |         <div> | ||||||
|             <div class="flex items-center p-1 px-2 overflow-hidden transition-all transform rounded cursor-pointer bg-coolgray-200" |             <div class="flex items-center p-1 px-2 overflow-hidden transition-all transform rounded cursor-pointer bg-coolgray-200" | ||||||
|                 @click="showCommandPalette = true"> |                 @click="showCommandPalette = true"> | ||||||
|                 <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 icon" viewBox="0 0 24 24" stroke-width="2" |                 <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 icon" viewBox="0 0 24 24" stroke-width="2" | ||||||
| @ -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; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user