3 Commits

Author SHA1 Message Date
Adrian Zürcher
c7c1b6c7c6 move notification with new marging and close button close #7 2025-11-10 08:09:09 +01:00
Adrian Zürcher
f7d5d9d019 fix localstorage not working on phone close #8 2025-11-09 22:32:22 +01:00
Adrian Zürcher
f1d7d3617d fix column address missing close #10 2025-11-09 22:31:49 +01:00
4 changed files with 55 additions and 4 deletions

View File

@@ -1,8 +1,16 @@
import { boot } from 'quasar/wrappers';
import { useUserStore } from 'src/vueLib/login/userStore';
import { appApi } from './axios';
export default boot(async ({ router }) => {
const userStore = useUserStore();
// load user
try {
const { data } = await appApi.get('/login/me');
await userStore.setUser(data);
} catch {
/* ignore error */
}
// Restore logic after router is ready but before navigation
router.isReady().then(() => {

View File

@@ -48,9 +48,24 @@ export function useNotify() {
$q?.notify({
message: message,
color: color,
position: 'bottom-right',
position: 'top-left',
icon: icon,
timeout: timeout,
classes: 'custom-notify',
attrs: {
style: 'margin-top: 50px',
},
actions: [
{
icon: 'close',
color: 'white',
dense: true,
round: true,
handler: () => {
/* just closes */
},
},
],
});
}
}

View File

@@ -56,9 +56,23 @@ export const useUserStore = defineStore('user', {
$q?.notify({
message: "user '" + this.user?.username + "' logged out",
color: 'orange',
position: 'bottom-right',
position: 'top-left',
icon: 'warning',
timeout: 5000,
attrs: {
style: 'margin-top: 50px',
},
actions: [
{
icon: 'close',
color: 'white',
dense: true,
round: true,
handler: () => {
/* just closes */
},
},
],
});
} else {
console.error("user '" + this.user?.username + "' logged out");
@@ -73,9 +87,23 @@ export const useUserStore = defineStore('user', {
$q?.notify({
message: err,
color: 'orange',
position: 'bottom-right',
position: 'top-left',
icon: 'warning',
timeout: 5000,
attrs: {
style: 'margin-top: 50px',
},
actions: [
{
icon: 'close',
color: 'white',
dense: true,
round: true,
handler: () => {
/* just closes */
},
},
],
});
} else {
console.error("user '" + this.user?.username + "' logged out");

View File

@@ -25,7 +25,7 @@ export function useMemberTable() {
lastName: true,
birthday: true,
age: true,
address: false,
address: true,
town: true,
zip: true,
phone: true,