new package dbHandler accesscontrol memeberdb and login with rights
All checks were successful
Build Quasar SPA and Go Backend for memberApp / build-spa (push) Successful in 2m20s
Build Quasar SPA and Go Backend for memberApp / build-backend (amd64, .exe, windows) (push) Successful in 5m27s
Build Quasar SPA and Go Backend for memberApp / build-backend (amd64, , linux) (push) Successful in 5m32s
Build Quasar SPA and Go Backend for memberApp / build-backend (arm, 6, , linux) (push) Successful in 5m28s
Build Quasar SPA and Go Backend for memberApp / build-backend (arm64, , linux) (push) Successful in 5m29s
All checks were successful
Build Quasar SPA and Go Backend for memberApp / build-spa (push) Successful in 2m20s
Build Quasar SPA and Go Backend for memberApp / build-backend (amd64, .exe, windows) (push) Successful in 5m27s
Build Quasar SPA and Go Backend for memberApp / build-backend (amd64, , linux) (push) Successful in 5m32s
Build Quasar SPA and Go Backend for memberApp / build-backend (arm, 6, , linux) (push) Successful in 5m28s
Build Quasar SPA and Go Backend for memberApp / build-backend (arm64, , linux) (push) Successful in 5m29s
This commit is contained in:
21
src/vueLib/utils/validation.ts
Normal file
21
src/vueLib/utils/validation.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import type { QForm } from 'quasar';
|
||||
import { nextTick } from 'vue';
|
||||
|
||||
export async function validateQForm(formRef: QForm | null | undefined): Promise<boolean> {
|
||||
await nextTick(); // wait until all inputs are rendered
|
||||
const components = formRef?.getValidationComponents?.();
|
||||
|
||||
if (!components) {
|
||||
console.warn('No validation components found in form');
|
||||
return true;
|
||||
}
|
||||
|
||||
let allValid = true;
|
||||
|
||||
for (const comp of components) {
|
||||
const valid = await comp.validate();
|
||||
if (!valid) allValid = false;
|
||||
}
|
||||
|
||||
return allValid;
|
||||
}
|
||||
Reference in New Issue
Block a user