enh: share rating to community

This commit is contained in:
Timothy J. Baek
2024-10-17 00:51:46 -07:00
parent 86adcf33b0
commit 4dcbf1af07
2 changed files with 21 additions and 6 deletions

View File

@@ -188,14 +188,14 @@
});
if (res) {
toast.success('Folder deleted successfully');
toast.success($i18n.t('Folder deleted successfully'));
dispatch('update');
}
};
const nameUpdateHandler = async () => {
if (name === '') {
toast.error("Folder name can't be empty");
toast.error($i18n.t('Folder name cannot be empty'));
return;
}
@@ -218,6 +218,8 @@
if (res) {
folders[folderId].name = name;
toast.success($i18n.t('Folder name updated successfully'));
dispatch('update');
}
};