feat(resources): add cursor, group by on /api/favorites/resources

This commit is contained in:
Edouard Vanbelle
2026-05-28 10:08:38 +02:00
parent 5790a1459f
commit 607ae5e6df
15 changed files with 1265 additions and 209 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ const contextMenus = {
// Check if folder is already in favorites to toggle
if (favorites?.isFavorite(folder.id, 'folder')) {
// Remove from favorites
const ok = await favorites.removeFromFavorites(folder.id, 'folder');
const ok = await favorites.removeFromFavorites(folder.id, 'folder', folder.name);
if (ok && ui && typeof ui.setFavoriteVisualState === 'function') {
ui.setFavoriteVisualState(folder.id, 'folder', false);
}
@@ -244,7 +244,7 @@ const contextMenus = {
// Check if file is already in favorites to toggle
if (favorites?.isFavorite(file.id, 'file')) {
// Remove from favorites
const ok = await favorites.removeFromFavorites(file.id, 'file');
const ok = await favorites.removeFromFavorites(file.id, 'file', file.name);
if (ok && ui && typeof ui.setFavoriteVisualState === 'function') {
ui.setFavoriteVisualState(file.id, 'file', false);
}