Skip to content

Commit b47bd60

Browse files
Fix folder create/delete toasts to say "Folder" not "Tag #"
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e19f51f commit b47bd60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

client/src/contexts/TagsContext.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const TagsProvider = ({ children }) => {
8989

9090
// Show success toast (unless the caller will show its own)
9191
if (!silent) {
92-
showToast(`Tag #${response.tag.name} created`);
92+
showToast(response.tag.is_folder ? `Folder ${response.tag.name} created` : `Tag #${response.tag.name} created`);
9393
}
9494

9595
// Log successful creation
@@ -172,7 +172,7 @@ export const TagsProvider = ({ children }) => {
172172

173173
// Show success toast (unless the caller will show its own)
174174
if (tagName && !silent) {
175-
showToast(`Tag #${tagName} deleted`);
175+
showToast(tagToDelete?.is_folder ? `Folder ${tagName} deleted` : `Tag #${tagName} deleted`);
176176
}
177177

178178
return { success: true, deletedNotesCount: result?.deletedNotesCount ?? 0 };

0 commit comments

Comments
 (0)