@@ -282,6 +282,15 @@ const rawNavigationActions = [
282282 router .push (" /blobstream" )
283283 },
284284 },
285+ {
286+ type: " callback" ,
287+ icon: " arrow-narrow-right" ,
288+ title: " Go to Cost Savings Calculator" ,
289+ runText: " Open Cost Savings" ,
290+ callback : () => {
291+ router .push (" /calculators/savings" )
292+ },
293+ },
285294 {
286295 type: " callback" ,
287296 icon: " arrow-narrow-right" ,
@@ -925,10 +934,10 @@ const debouncedSearch = useDebounceFn(async (e) => {
925934 const bookmarks = bookmarksStore .searchBookmarks (searchTerm .value )
926935 const { data } = await search (searchTerm .value .trim ())
927936
928- data .value = [... bookmarks, ... data .value ]
929-
930937 if (! data .value ? .length ) return
931938
939+ data .value = [... bookmarks, ... data .value ]
940+
932941 amp .log (" showAutocomplete" , { count: data .value .length , firstType: data .value [0 ].type })
933942
934943 autocompleteActions .value = []
@@ -965,7 +974,8 @@ const debouncedSearch = useDebounceFn(async (e) => {
965974 break
966975
967976 case " validator" :
968- title = data .value [i].result .alias || data .value [i].result .moniker ? data .value [i].result .moniker : data .value [i].result .address
977+ title =
978+ data .value [i].result .alias || data .value [i].result .moniker ? data .value [i].result .moniker : data .value [i].result .address
969979 routerLink = ` /validator/${ data .value [i].result .id } `
970980 break
971981
@@ -1066,11 +1076,18 @@ watch(
10661076 })
10671077 trap .activate ()
10681078
1079+ if (appStore .cmdAction ) {
1080+ const action = rawQuickCommandsActions .find ((a ) => a .title === appStore .cmdAction )
1081+ handleExecute ({ id: 1 , ... action })
1082+ }
1083+
10691084 removeOutside = useOutside (popupEl .value .wrapper , () => {
10701085 handleOutside ()
10711086 })
10721087 })
10731088 } else {
1089+ appStore .cmdAction = null
1090+
10741091 document .removeEventListener (" keydown" , onKeydown)
10751092
10761093 if (trap && trap .active ) trap .deactivate ()
0 commit comments