fix login spaces

This commit is contained in:
xds
2025-03-06 19:06:50 +03:00
parent 570f55f1ea
commit c982b30aae

View File

@@ -5,7 +5,7 @@
<!-- <TransactionForm v-if="drawerOpened" :visible="drawerOpened" :transaction-type="'INSTANT'"-->
<!-- :category-type="'EXPENSE'" @close-drawer="closeDrawer"/>-->
<div class="flex flex-row rounded-full px-2 justify-between overflow-x-scroll">
<div class=" flex-col gap-2 p-2 sm:flex">
<div v-if="selectedSpace" class=" flex-col gap-2 p-2 sm:flex">
<button class="items-center flex flex-col gap-2" @click="openDrawer('INSTANT', 'EXPENSE')">
<i class="pi pi-plus text-xl" style="font-size: 1rem"></i>
<p>Запись</p>
@@ -115,12 +115,13 @@
</template>
<script setup lang="ts">
import {onMounted, ref} from 'vue';
import {computed, onMounted, ref, watch} from 'vue';
import Button from 'primevue/button';
import {TransactionType} from "@/models/Transaction";
import {CategoryType} from "@/models/Category";
import {useDrawerStore} from "@/stores/drawerStore";
import {useRoute, useRouter} from "vue-router";
import {useSpaceStore} from "@/stores/spaceStore";
const router = useRouter()
const route = useRoute()
@@ -134,6 +135,9 @@ const categoryType = ref<CategoryType>()
const drawerOpened = ref(false);
const drawerStore = useDrawerStore()
const selectedSpace = computed(() => useSpaceStore().space)
const refreshPage = () => {