feat(favorites) drag-and-drop favorites section (#1360)

This commit is contained in:
gitmotion 2024-10-25 13:42:12 -07:00 committed by GitHub
parent ea8c4ed077
commit 0b1b98f93e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 72 additions and 4 deletions

View file

@ -59,5 +59,9 @@ export const useToolStore = defineStore('tools', () => {
return favoriteToolsName.value.includes(get(tool).name)
|| favoriteToolsName.value.includes(get(tool).path);
},
updateFavoriteTools(newOrder: ToolWithCategory[]) {
favoriteToolsName.value = newOrder.map(tool => tool.path);
},
};
});