diff options
| author | Fuwn <[email protected]> | 2026-04-14 18:19:54 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-14 18:19:54 -0700 |
| commit | f3ac4e6051d5b18c26d5a876ce12ddd1fd0f7107 (patch) | |
| tree | 8f54fc3fa12c70b21bf4bf421608c9b9400064da /src/lib/CommandPalette/actions.ts | |
| parent | fix(ui): balance homepage media panels (diff) | |
| parent | feat(cache): instant list revalidation from command palette and debug menu (diff) | |
| download | due.moe-f3ac4e6051d5b18c26d5a876ce12ddd1fd0f7107.tar.xz due.moe-f3ac4e6051d5b18c26d5a876ce12ddd1fd0f7107.zip | |
Merge pull request #3 from Fuwn/feat/instant-cache-invalidation
feat(cache): instant list revalidation from command palette and debug menu
Diffstat (limited to 'src/lib/CommandPalette/actions.ts')
| -rw-r--r-- | src/lib/CommandPalette/actions.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/CommandPalette/actions.ts b/src/lib/CommandPalette/actions.ts index 01259130..9915fe66 100644 --- a/src/lib/CommandPalette/actions.ts +++ b/src/lib/CommandPalette/actions.ts @@ -1,3 +1,5 @@ +import { invalidateListCaches } from "$lib/Media/invalidate"; + export interface CommandPaletteAction { name: string; url: string; @@ -165,4 +167,20 @@ export const defaultActions: CommandPaletteAction[] = [ url: "/user?badges=1", tags: ["user", "me", "settings"], }, + { + name: "Refresh Anime & Manga List Caches", + url: "", + preventDefault: true, + tags: [ + "cache", + "clear", + "refresh", + "invalidate", + "debug", + "anime", + "manga", + "list", + ], + onClick: invalidateListCaches, + }, ]; |