Fixed Account pages
This commit is contained in:
@@ -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" /> {{ title }}
|
||||
<div>
|
||||
<div class="pl-2 py-1">
|
||||
<v-icon :icon="icon" v-if="icon" /> {{ title }}
|
||||
</div>
|
||||
<div>
|
||||
<v-card-subtitle >{{ subtitle }}</v-card-subtitle>
|
||||
</div>
|
||||
</div>
|
||||
</v-skeleton-loader>
|
||||
</v-sheet>
|
||||
</v-card-title>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user