Fixed Account pages

This commit is contained in:
2024-10-21 14:02:51 +02:00
parent 59470f5396
commit 7880a444b1
56 changed files with 208 additions and 153 deletions

View File

@@ -2,6 +2,7 @@
defineProps({
title: String,
subtitle: String,
icon: {
type: String
},
@@ -15,13 +16,20 @@ defineProps({
<template>
<v-card variant="tonal" >
<v-card-title v-if="title || loading" color="primary" class="pa-0">
<v-sheet color="primary" class="pl-2 py-1">
<v-sheet color="primary">
<v-skeleton-loader
type="heading"
:loading="loading"
style="background-color: transparent"
>
<v-icon :icon="icon" v-if="icon" /> &nbsp;{{ title }}
<div>
<div class="pl-2 py-1">
<v-icon :icon="icon" v-if="icon" /> &nbsp;{{ title }}
</div>
<div>
<v-card-subtitle >{{ subtitle }}</v-card-subtitle>
</div>
</div>
</v-skeleton-loader>
</v-sheet>
</v-card-title>

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useAccountStore } from '@/data/stores/accountStore';
import { useBasketStore } from '@/data/stores/basketStore';
import { useAccountStore } from '@/stores/account.store';
import { useBasketStore } from '@/stores/basketStore';
const accountStore = useAccountStore()
const basketStore = useBasketStore()
@@ -9,8 +9,8 @@ const basketStore = useBasketStore()
<template>
<v-btn variant="plain" icon="mdi-magnify" to="/search" />
<v-btn v-if="accountStore.userAccount.id == 0" variant="plain" icon="mdi-account" to="/account/login" />
<v-btn v-else variant="plain" icon="mdi-account" to="/account" />
<v-btn v-if="accountStore.userAccount.id == undefined" variant="plain" icon="mdi-account" to="/account/login" />
<v-btn v-else variant="plain" icon="mdi-account" to="/account/home" />
<div>
<v-badge

View File

@@ -34,12 +34,9 @@ defineProps({
seatRow: Number,
seat: Number,
seatNr: Number,
standingArea: {
type: Boolean,
default: false
}
standingArea: Boolean
})
</script>
@@ -110,7 +107,7 @@ defineProps({
</div>
<div>
{{ seat }}
{{ seatNr }}
</div>
</v-card>
</div>

View File

@@ -4,7 +4,7 @@ import { SeatGroupModel } from '@/data/models/locations/seatGroupModel';
import { SeatModel } from '@/data/models/locations/seatModel';
import { SeatRowModel } from '@/data/models/locations/seatRowModel';
import { SelectedSeatModel } from '@/data/models/ordering/selectedSeatModel';
import { useBasketStore } from '@/data/stores/basketStore';
import { useBasketStore } from '@/stores/basketStore';
const basketStore = useBasketStore()

View File

@@ -2,7 +2,7 @@
import { ConcertModel } from '@/data/models/acts/concertModel';
import { SeatGroupModel } from '@/data/models/locations/seatGroupModel';
import { SelectedSeatModel } from '@/data/models/ordering/selectedSeatModel';
import { useBasketStore } from '@/data/stores/basketStore';
import { useBasketStore } from '@/stores/basketStore';
const basketStore = useBasketStore()