feat(web): add warning when setting a quota superior to the disk size (#6737)

* refactor: inline warning

* fix: do not use onmount

* chore: remove outdated comment

* wording

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
martin 2024-01-30 18:21:45 +01:00 committed by GitHub
parent 4290a29107
commit 7a1f25b515
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 41 additions and 27 deletions

View file

@ -1,9 +1,10 @@
import { authenticate } from '$lib/utils/auth';
import { authenticate, requestServerInfo } from '$lib/utils/auth';
import { api } from '@api';
import type { PageLoad } from './$types';
export const load = (async () => {
await authenticate({ admin: true });
await requestServerInfo();
const { data: allUsers } = await api.userApi.getAllUsers({ isAll: false });
return {