some Fixes, see #45

This commit is contained in:
PxlLoewe
2025-07-05 00:59:22 -07:00
parent 80d2704852
commit 2cdbab9f28
9 changed files with 240 additions and 176 deletions

View File

@@ -177,9 +177,13 @@ export const ProfileForm: React.FC<ProfileFormProps> = ({ user }: ProfileFormPro
type="button"
className="btn btn-sm btn-outline"
onClick={() =>
form.setValue("permissions", ["LOGIN_NEXTCLOUD", "PILOT", "DISPO", "AUDIO"], {
shouldDirty: true,
})
form.setValue(
"permissions",
["LOGIN_NEXTCLOUD", "PILOT", "DISPO", "AUDIO", "ADMIN_EVENT"],
{
shouldDirty: true,
},
)
}
onSubmit={() => false}
>

View File

@@ -112,6 +112,7 @@ export function PaginatedTable<TData>({
onChange={(e) => {
setSearchTerm(e.target.value);
handleSearchChange(e.target.value);
setPage(0); // Reset to first page on search
}}
className="input input-bordered w-full max-w-xs justify-end"
/>