Confirm dialog, fix language change bug, add bank accout information to users

This commit is contained in:
2024-09-22 20:57:28 +02:00
parent d7eae540b1
commit 564cf144ff
16 changed files with 222 additions and 32 deletions

View File

@@ -3,8 +3,13 @@ import { useBasketStore } from '@/data/stores/basketStore';
import productsTable from './productsTable.vue';
import alertBanner from '@/components/alertBanner.vue';
import cardView from '@/components/cardView.vue';
import { useUserStore } from '@/data/stores/userStore';
import orderingDialog from './orderingDialog.vue';
import { ref } from 'vue';
const basketStore = useBasketStore()
const userStore = useUserStore()
const showOrderingDialog = ref()
</script>
<template>
@@ -41,9 +46,10 @@ const basketStore = useBasketStore()
<template #actions>
<v-btn
prepend-icon="mdi-basket-check"
:disabled="basketStore.itemsInBasket.length == 0"
:disabled="basketStore.itemsInBasket.length == 0 || userStore.userAccount.id == null"
variant="outlined"
color="green"
@click="showOrderingDialog = true"
>
{{ $t('orderNow') }}
</v-btn>
@@ -52,4 +58,6 @@ const basketStore = useBasketStore()
</v-col>
</v-row>
</v-container>
<ordering-dialog v-model="showOrderingDialog" />
</template>