fix: tag unarchive/archive issue

This commit is contained in:
Timothy J. Baek
2024-10-14 22:57:11 -07:00
parent d8a30bd6ae
commit 6703cacb99
9 changed files with 72 additions and 30 deletions
@@ -15,13 +15,8 @@
import DocumentDuplicate from '$lib/components/icons/DocumentDuplicate.svelte';
import Bookmark from '$lib/components/icons/Bookmark.svelte';
import BookmarkSlash from '$lib/components/icons/BookmarkSlash.svelte';
import {
addTagById,
deleteTagById,
getChatPinnedStatusById,
getTagsById,
toggleChatPinnedStatusById
} from '$lib/apis/chats';
import { getChatPinnedStatusById, toggleChatPinnedStatusById } from '$lib/apis/chats';
import { chats } from '$lib/stores';
const i18n = getContext('i18n');
@@ -146,6 +141,7 @@
type: 'add',
name: e.detail.name
});
show = false;
}}
on:delete={(e) => {
@@ -153,6 +149,7 @@
type: 'delete',
name: e.detail.name
});
show = false;
}}
on:close={() => {