mirror of
https://github.com/koloml/philomena-tagging-assistant.git
synced 2026-05-09 15:12:21 +00:00
Added Tag Presets, popup editor for them, implemented presets image edit
This commit is contained in:
11
src/stores/entities/tag-editor-presets.ts
Normal file
11
src/stores/entities/tag-editor-presets.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { type Writable, writable } from "svelte/store";
|
||||
import TagEditorPreset from "$entities/TagEditorPreset";
|
||||
|
||||
export const tagEditorPresets: Writable<TagEditorPreset[]> = writable([]);
|
||||
|
||||
TagEditorPreset
|
||||
.readAll()
|
||||
.then(presets => tagEditorPresets.set(presets))
|
||||
.then(() => {
|
||||
TagEditorPreset.subscribe(presets => tagEditorPresets.set(presets))
|
||||
});
|
||||
Reference in New Issue
Block a user