remove components when dialog not shown.

This commit is contained in:
Miroslav Šedivý
2023-09-30 22:58:46 +02:00
parent ff5e3267db
commit 1ede3c2c32
3 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -58,7 +58,7 @@
Room information
</v-card-title>
<v-card-text>
<RoomInfo :roomId="roomId" />
<RoomInfo v-if="dialog" :roomId="roomId" />
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
+1 -1
View File
@@ -31,7 +31,7 @@
Room information
</v-card-title>
<v-card-text>
<RoomInfo :roomId="roomId" />
<RoomInfo v-if="dialog" :roomId="roomId" />
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
+2 -6
View File
@@ -36,11 +36,7 @@
</v-col>
<v-col class="text-right">
<RoomsQuick class="mr-3" />
<v-dialog
v-model="dialog"
persistent
max-width="600px"
>
<v-dialog v-model="dialog" persistent max-width="600px">
<template v-slot:activator="{ on, attrs }">
<v-btn
v-bind="attrs"
@@ -52,7 +48,7 @@
</v-btn>
</template>
<RoomsCreate @finished="dialog = false" />
<RoomsCreate v-if="dialog" @finished="dialog = false" />
</v-dialog>
</v-col>
</v-row>