enh: folder background image

This commit is contained in:
Timothy Jaeryang Baek
2025-09-16 13:32:42 -05:00
parent d46b7b8f1b
commit 2a234829f5
4 changed files with 87 additions and 3 deletions
@@ -32,7 +32,7 @@
let showFolderModal = false;
let showDeleteConfirm = false;
const updateHandler = async ({ name, data }) => {
const updateHandler = async ({ name, meta, data }) => {
if (name === '') {
toast.error($i18n.t('Folder name cannot be empty.'));
return;
@@ -45,6 +45,7 @@
const res = await updateFolderById(localStorage.token, folder.id, {
name,
...(meta ? { meta } : {}),
...(data ? { data } : {})
}).catch((error) => {
toast.error(`${error}`);