1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-04-18 08:21:03 +00:00
Romein van Buren 415efe9ac4
Multiple improvements to the frontend
* Consistent usage of modal footer
* Remove hosts
* Moved hosts to dedicated store
2023-05-31 20:20:39 +02:00

12 lines
307 B
JavaScript

import { Hosts } from "$wails/go/app/App";
import { writable } from "svelte/store";
import applicationInited from "./inited";
const { set, subscribe } = writable();
const update = async () => set(await Hosts());
applicationInited.defer(update);
const hosts = { update, subscribe };
export default hosts;