mirror of
https://github.com/koloml/philomena-tagging-assistant.git
synced 2026-05-09 15:12:21 +00:00
First draft version with Svelte for popup and additional build steps
This commit is contained in:
13
src/stores/maintenance-profiles-store.js
Normal file
13
src/stores/maintenance-profiles-store.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import {writable} from "svelte/store";
|
||||
import MaintenanceProfile from "$lib/extension/entities/MaintenanceProfile.js";
|
||||
|
||||
/** @type {import('svelte/store').Writable<MaintenanceProfile[]>} */
|
||||
export const maintenanceProfilesStore = writable([]);
|
||||
|
||||
MaintenanceProfile.readAll().then(profiles => {
|
||||
maintenanceProfilesStore.set(profiles);
|
||||
});
|
||||
|
||||
MaintenanceProfile.subscribe(profiles => {
|
||||
maintenanceProfilesStore.set(profiles);
|
||||
});
|
||||
Reference in New Issue
Block a user