svelte refactor

This commit is contained in:
Bradley Nelson
2026-06-17 22:30:56 -06:00
parent 89e14f8f9e
commit e6279da5ce
26 changed files with 497 additions and 386 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
<script lang="ts">
import { errorMessage, errorToast } from '$lib/utils/errors';
import { onMount } from 'svelte';
import {
addGroupMember,
@@ -54,7 +55,7 @@
groups = page.items;
total = page.total;
} catch (e) {
error = e instanceof Error ? e.message : String(e);
error = errorMessage(e);
} finally {
loading = false;
}
@@ -74,7 +75,7 @@
}
function report(e: unknown) {
ui.notify(e instanceof Error ? e.message : String(e), 'error');
errorToast(e);
}
/** Localised "(N members)" label. Project i18n has no plural rules, so we