Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce49447b6e | ||
|
|
deabea60ca | ||
|
|
7a1f3431ae | ||
|
|
1954448219 |
@@ -26,9 +26,10 @@
|
|||||||
|
|
||||||
async function load() {
|
async function load() {
|
||||||
try {
|
try {
|
||||||
data = await get<Data>('/api/admin/email');
|
const d = await get<Data>('/api/admin/email');
|
||||||
templates = structuredClone(data.templates);
|
data = d;
|
||||||
if (!groupId && data.groups[0]) groupId = data.groups[0].id;
|
templates = structuredClone(d.templates);
|
||||||
|
if (!groupId && d.groups[0]) groupId = d.groups[0].id;
|
||||||
} catch (e) { toastError(e); }
|
} catch (e) { toastError(e); }
|
||||||
}
|
}
|
||||||
onMount(() => { load(); const i = setInterval(() => get<Data>('/api/admin/email').then((d) => data && (data.log = d.log)).catch(() => {}), 5000); return () => clearInterval(i); });
|
onMount(() => { load(); const i = setInterval(() => get<Data>('/api/admin/email').then((d) => data && (data.log = d.log)).catch(() => {}), 5000); return () => clearInterval(i); });
|
||||||
|
|||||||
Reference in new issue
Block a user