mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-25 01:06:15 -04:00
feat(favorites) drag-and-drop favorites section (#1360)
This commit is contained in:
parent
ea8c4ed077
commit
0b1b98f93e
13 changed files with 72 additions and 4 deletions
|
@ -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);
|
||||
},
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue