diff --git a/src/webapp/main/notes.md b/src/webapp/main/notes.md index c2ca3be..61b0cf6 100644 --- a/src/webapp/main/notes.md +++ b/src/webapp/main/notes.md @@ -10,5 +10,4 @@ - - add webpack to project website to decrease file size \ No newline at end of file diff --git a/src/webapp/main/src/router/index.js b/src/webapp/main/src/router/index.js index 27de7f6..60b11cd 100644 --- a/src/webapp/main/src/router/index.js +++ b/src/webapp/main/src/router/index.js @@ -38,8 +38,6 @@ let authRequired = false; router.beforeEach( ( to, from ) => { let userStore = useUserStore(); - let backendStore = useBackendStore(); - backendStore.loadVisitedSetupPages(); let isUserAuthenticated = userStore.getUserAuthenticated; let isAdminAuthenticated = userStore.getAdminAuthenticated; @@ -53,8 +51,6 @@ router.beforeEach( ( to, from ) => { return { name: 'account' }; } else if ( !isUserAuthenticated && to.name === 'pay' ) { return { name: 'purchase' }; - } else if ( to.name.substring( 0, 5 ) === 'setup' && !backendStore.getVisitedSetupPages[ to.name.substring( 5 ).toLowerCase() ] && to.name.substring( 5 ).toLowerCase() !== 'start' && to.name.substring( 5 ).toLowerCase() !== 'root' ) { - return { name: 'setupStart' }; } else if ( to.name === '2fa' && !userStore.getUserTwoFACompliant ) { return { name: 'login' }; } else if ( to.name === 'Admin2fa' && !userStore.getAdminTwoFACompliant ) { diff --git a/src/webapp/main/src/router/mainRoutes.js b/src/webapp/main/src/router/mainRoutes.js index 0777b73..bdc72ba 100644 --- a/src/webapp/main/src/router/mainRoutes.js +++ b/src/webapp/main/src/router/mainRoutes.js @@ -116,15 +116,6 @@ export default [ transition: 'scale' } }, - { - path: '/pay', - name: 'pay', - component: () => import( '@/views/purchasing/PaymentView.vue' ), - meta: { - title: 'Pay - libreevent', - transition: 'scale', - } - }, { path: '/admin/seatplan', name: 'adminSeatplanEditor', diff --git a/src/webapp/main/src/stores/backendStore.js b/src/webapp/main/src/stores/backendStore.js index 56f2f2e..2a8e0b6 100644 --- a/src/webapp/main/src/stores/backendStore.js +++ b/src/webapp/main/src/stores/backendStore.js @@ -10,19 +10,13 @@ import { defineStore } from "pinia"; export const useBackendStore = defineStore ( 'backend', { - state: () => ( { 'visitedSetupPages': {}, 'guestPurchase': false, 'guestPurchaseAllowed': true } ), + state: () => ( { 'guestPurchase': false, 'guestPurchaseAllowed': true } ), getters: { getVisitedSetupPages: ( state ) => state.visitedSetupPages, getIsGuestPurchase: ( state ) => state.guestPurchase, getIsGuestPurchaseAllowed: ( state ) => state.guestPurchaseAllowed, }, - actions: { - addVisitedSetupPages ( page, data ) { - this.visitedSetupPages[ page ] = data; - sessionStorage.setItem( 'visitedSetupPages', JSON.stringify( this.visitedSetupPages ) ); - }, - loadVisitedSetupPages () { - this.visitedSetupPages = sessionStorage.getItem( 'visitedSetupPages' ) ? JSON.parse( sessionStorage.getItem( 'visitedSetupPages' ) ) : {}; - } - } + // actions: { + + // } } ); \ No newline at end of file diff --git a/src/webapp/main/src/views/purchasing/CartView.vue b/src/webapp/main/src/views/purchasing/CartView.vue index ddf3312..fafe56e 100644 --- a/src/webapp/main/src/views/purchasing/CartView.vue +++ b/src/webapp/main/src/views/purchasing/CartView.vue @@ -85,6 +85,10 @@ font-size: 110%; margin: 0; } + + .tickets-table { + margin-left: 3%; + }