Dialogs and Vuetify styling changes
This commit is contained in:
parent
2ba0d57aa8
commit
a97211afdf
45 changed files with 320 additions and 346 deletions
43
src/components/RoomDialogBase.vue
Normal file
43
src/components/RoomDialogBase.vue
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<template><div></div></template>
|
||||
<script>
|
||||
import roomInfoMixin from "./roomInfoMixin";
|
||||
|
||||
export default {
|
||||
name: "RoomDialogBase",
|
||||
mixins: [roomInfoMixin],
|
||||
props: ['modelValue'],
|
||||
emits: ['update:modelValue'],
|
||||
data() {
|
||||
return {
|
||||
showDialog: false,
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
room() {
|
||||
this.showDialog = this.shouldShow();
|
||||
},
|
||||
modelValue() {
|
||||
this.showDialog = this.shouldShow();
|
||||
},
|
||||
showDialog() {
|
||||
if (!this.showDialog) {
|
||||
this.$emit('update:modelValue', false)
|
||||
} else {
|
||||
this.onOpenDialog();
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
shouldShow() {
|
||||
return this.modelValue && this.room ? true : false;
|
||||
},
|
||||
onOpenDialog() {
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import "@/assets/css/chat.scss";
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue