diff --git a/frontend/src/app.svelte b/frontend/src/app.svelte
index 39bc4b2..a8fbc2e 100644
--- a/frontend/src/app.svelte
+++ b/frontend/src/app.svelte
@@ -1,6 +1,6 @@
{#if items && position}
@@ -20,7 +24,7 @@
{:else}
-
diff --git a/frontend/src/stores.js b/frontend/src/stores.js
index d0c9ff6..34e4566 100644
--- a/frontend/src/stores.js
+++ b/frontend/src/stores.js
@@ -1,14 +1,23 @@
import { writable } from 'svelte/store';
-export const busy = writable(false);
-busy.subscribe(isBusy => {
- if (isBusy) {
- document.body.classList.add('busy');
- }
- else {
- document.body.classList.remove('busy');
- }
-});
+export const busy = (() => {
+ const { update, subscribe } = writable(0);
+
+ subscribe(isBusy => {
+ if (isBusy) {
+ document.body.classList.add('busy');
+ }
+ else {
+ document.body.classList.remove('busy');
+ }
+ });
+
+ return {
+ start: () => update(v => ++v),
+ end: () => update(v => --v),
+ subscribe,
+ };
+})();
export const contextMenu = (() => {
const { set, subscribe } = writable();
diff --git a/frontend/wailsjs/go/app/App.d.ts b/frontend/wailsjs/go/app/App.d.ts
index cddb339..71e23bb 100755
--- a/frontend/wailsjs/go/app/App.d.ts
+++ b/frontend/wailsjs/go/app/App.d.ts
@@ -4,6 +4,8 @@ import {map[string]app} from '../models';
import {primitive} from '../models';
import {app} from '../models';
+export function DropCollection(arg1:string,arg2:string,arg3:string):Promise;
+
export function DropDatabase(arg1:string,arg2:string):Promise;
export function Hosts():Promise