fix in ui for a refresh

This commit is contained in:
user
2026-03-01 09:26:26 +02:00
parent 17039aa3dd
commit 6c2b917088
4 changed files with 40 additions and 10 deletions

View File

@@ -17,7 +17,7 @@
breadcrumbs.set([mainNavTree[0]]);
onMount(async () => {
await mobileVM.fetchDevices();
await mobileVM.refreshDevices();
mobileVM.startDevicesPolling(5000);
});
@@ -40,7 +40,7 @@
<Button
variant="outline"
size="sm"
onclick={() => mobileVM.fetchDevices()}
onclick={() => void mobileVM.refreshDevices()}
disabled={mobileVM.devicesLoading}
>
<Icon
@@ -62,7 +62,7 @@
bind:value={mobileVM.devicesSearch}
oninput={() => {
mobileVM.devicesPage = 1;
mobileVM.fetchDevices();
void mobileVM.refreshDevices();
}}
/>
</div>

View File

@@ -64,8 +64,8 @@
</div>
<div class="grid place-items-center p-8 py-32">
<span class="text-xl font-semibold"
>INFO: Normally would show all the users table here
<span class="text-xl font-semibold">
Not Active At The Moment
</span>
</div>
</Card.Content>