diff --git a/xroom-dashboard/src/assets/img/Icon6.svg b/xroom-dashboard/src/assets/img/Icon6.svg new file mode 100644 index 0000000..c8cd22c --- /dev/null +++ b/xroom-dashboard/src/assets/img/Icon6.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/xroom-dashboard/src/components/AddUserModal.vue b/xroom-dashboard/src/components/AddUserModal.vue index 2bcdda0..7265253 100644 --- a/xroom-dashboard/src/components/AddUserModal.vue +++ b/xroom-dashboard/src/components/AddUserModal.vue @@ -122,7 +122,22 @@ export default { }, }; }, + watch: { + isVisible(newVal) { + if (newVal) { + // غیرفعال کردن اسکرول هنگام باز شدن پاپ‌آپ + document.body.style.overflow = 'hidden'; + } else { + // فعال کردن اسکرول هنگام بسته شدن پاپ‌آپ + document.body.style.overflow = ''; + } + }, + }, methods: { + beforeDestroy() { + // اطمینان از فعال شدن اسکرول هنگام حذف کامپوننت + document.body.style.overflow = ''; + }, close() { this.newUser = { first_name: '', diff --git a/xroom-dashboard/src/components/CreateMeetingModal.vue b/xroom-dashboard/src/components/CreateMeetingModal.vue index 0d7ab24..201e373 100644 --- a/xroom-dashboard/src/components/CreateMeetingModal.vue +++ b/xroom-dashboard/src/components/CreateMeetingModal.vue @@ -418,8 +418,30 @@ export default { const customer = JSON.parse(localStorage.getItem('customer') || '{}'); return customer.profile_img || this.defaultProfileIcon; }, + }, + watch: { + // نظارت بر باز و بسته شدن پاپ‌آپ اصلی + isOpen(newVal) { + if (newVal) { + document.body.style.overflow = 'hidden'; + } else if (!this.isRoomSelectionOpen) { + document.body.style.overflow = ''; + } + }, + // نظارت بر باز و بسته شدن پاپ‌آپ انتخاب اتاق + isRoomSelectionOpen(newVal) { + if (newVal) { + document.body.style.overflow = 'hidden'; + } else if (!this.isOpen) { + document.body.style.overflow = ''; + } + }, }, methods: { + beforeDestroy() { + // اطمینان از فعال شدن اسکرول هنگام حذف کامپوننت + document.body.style.overflow = ''; + }, openRoomSelection() { this.isRoomSelectionOpen = true; }, diff --git a/xroom-dashboard/src/components/CreateSpaceModal.vue b/xroom-dashboard/src/components/CreateSpaceModal.vue index cc6fdf1..5a8af6b 100644 --- a/xroom-dashboard/src/components/CreateSpaceModal.vue +++ b/xroom-dashboard/src/components/CreateSpaceModal.vue @@ -109,6 +109,10 @@ export default { }; }, methods: { + beforeDestroy() { + // اطمینان از فعال شدن اسکرول هنگام حذف کامپوننت + document.body.style.overflow = ''; + }, closeModal() { this.$emit('close'); this.resetForm() @@ -196,7 +200,12 @@ export default { watch: { isVisible(newVal) { if (newVal) { + // غیرفعال کردن اسکرول هنگام باز شدن پاپ‌آپ + document.body.style.overflow = 'hidden'; this.fetchSpaces(); + } else { + // فعال کردن اسکرول هنگام بسته شدن پاپ‌آپ + document.body.style.overflow = ''; } }, }, diff --git a/xroom-dashboard/src/components/EditBillingModal.vue b/xroom-dashboard/src/components/EditBillingModal.vue index 9172096..8a214f4 100644 --- a/xroom-dashboard/src/components/EditBillingModal.vue +++ b/xroom-dashboard/src/components/EditBillingModal.vue @@ -132,7 +132,22 @@ export default { }, }; }, + watch: { + isVisible(newVal) { + if (newVal) { + // غیرفعال کردن اسکرول هنگام باز شدن پاپ‌آپ + document.body.style.overflow = 'hidden'; + } else { + // فعال کردن اسکرول هنگام بسته شدن پاپ‌آپ + document.body.style.overflow = ''; + } + }, + }, methods: { + beforeDestroy() { + // اطمینان از فعال شدن اسکرول هنگام حذف کامپوننت + document.body.style.overflow = ''; + }, handleSubmit() { console.log('اطلاعات صورت حساب:', JSON.stringify(this.form, null, 2)); /* console.log('اطلاعات صورت حساب:', this.form); */ diff --git a/xroom-dashboard/src/components/FilePreviewDialog.vue b/xroom-dashboard/src/components/FilePreviewDialog.vue new file mode 100644 index 0000000..3a21446 --- /dev/null +++ b/xroom-dashboard/src/components/FilePreviewDialog.vue @@ -0,0 +1,329 @@ + + + + + \ No newline at end of file diff --git a/xroom-dashboard/src/components/NewFileDialog.vue b/xroom-dashboard/src/components/NewFileDialog.vue new file mode 100644 index 0000000..c5a3056 --- /dev/null +++ b/xroom-dashboard/src/components/NewFileDialog.vue @@ -0,0 +1,420 @@ + + + + + \ No newline at end of file diff --git a/xroom-dashboard/src/components/RoomSelectionModal.vue b/xroom-dashboard/src/components/RoomSelectionModal.vue index 6ead44e..8dd157e 100644 --- a/xroom-dashboard/src/components/RoomSelectionModal.vue +++ b/xroom-dashboard/src/components/RoomSelectionModal.vue @@ -1,5 +1,5 @@