webui: edit-category modal + dropdown dedupe
Add an "Edit category…" context-menu item and modal that renames a category and/or changes its save path (Uncategorized: path only). Filter empty-named categories out of the add/set-category dropdowns so the stored Uncategorized save-path entry doesn't double the option. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
c3985fe742
commit
d55fc35c72
2 changed files with 34 additions and 2 deletions
|
|
@ -36,6 +36,8 @@ export const api = {
|
|||
|
||||
createCategory: (name, savePath) => jpost('/api/categories', { name, savePath }),
|
||||
deleteCategory: (name) => jpost('/api/categories/delete', { name }),
|
||||
editCategory: (name, newName, savePath) =>
|
||||
jpost('/api/categories/edit', { name, newName, savePath }),
|
||||
createTag: (name) => jpost('/api/tags', { name }),
|
||||
deleteTag: (name) => jpost('/api/tags/delete', { name }),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue