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

This commit is contained in:
Adrian Zürcher
2025-10-31 14:54:05 +01:00
parent b0d6bb5512
commit cc3a547961
60 changed files with 1062 additions and 1162 deletions

View File

@@ -29,6 +29,16 @@ const localTitle = ref('');
const localField = ref('');
const value = ref('');
const props = defineProps({
endpoint: {
type: String,
required: true,
},
queryId: {
type: Boolean,
},
});
const emit = defineEmits(['update']);
const { NotifyResponse } = useNotify();
@@ -42,7 +52,10 @@ function open(label: string, field: string, member: Member) {
}
function save() {
const query = 'secure/members/edit?id=' + localMember.value.id;
let query = props.endpoint;
if (props.queryId) {
query += '?id=' + localMember.value.id;
}
let payload = {};
if (value.value === localMember.value[localField.value]) {
@@ -50,13 +63,15 @@ function save() {
return;
}
payload = {
id: localMember.value.id,
[localField.value]: value.value,
};
appApi
.post(query, payload)
.then(() => {
emit('update', '');
.then((resp) => {
emit('update');
NotifyResponse(resp.data);
dialog.value.close();
})
.catch((err) => {