From 72849de1b467f21e550858982c071b8b669c981c Mon Sep 17 00:00:00 2001 From: mohit-nagaraj Date: Tue, 8 Oct 2024 08:43:30 +0530 Subject: [PATCH] fix lint --- src/components/CreateGroupDialog.vue | 8 ++++---- src/components/NotificationDialog.vue | 10 ++++------ src/components/ProxyDialog.vue | 8 ++++---- src/components/TagsManager.vue | 8 ++++---- 4 files changed, 16 insertions(+), 18 deletions(-) diff --git a/src/components/CreateGroupDialog.vue b/src/components/CreateGroupDialog.vue index 711369755..ee37fb0b2 100644 --- a/src/components/CreateGroupDialog.vue +++ b/src/components/CreateGroupDialog.vue @@ -74,7 +74,7 @@ export default { * Clean up modal and restore scroll behavior * @returns {void} */ - cleanupModal() { + cleanupModal() { if (this.modal) { try { this.modal.hide(); @@ -82,9 +82,9 @@ export default { console.warn("Modal hide failed:", e); } } - document.body.classList.remove('modal-open'); - document.body.style.paddingRight = ''; - document.body.style.overflow = ''; + document.body.classList.remove("modal-open"); + document.body.style.paddingRight = ""; + document.body.style.overflow = ""; } }, }; diff --git a/src/components/NotificationDialog.vue b/src/components/NotificationDialog.vue index 41b179780..4641fe9ab 100644 --- a/src/components/NotificationDialog.vue +++ b/src/components/NotificationDialog.vue @@ -226,12 +226,10 @@ export default { this.notification.name = this.getUniqueDefaultName(to); } }, - watch: { $route(to, from) { this.cleanupModal(); } }, - }, mounted() { this.modal = new Modal(this.$refs.modal); }, @@ -352,7 +350,7 @@ export default { * Clean up modal and restore scroll behavior * @returns {void} */ - cleanupModal() { + cleanupModal() { if (this.modal) { try { this.modal.hide(); @@ -360,9 +358,9 @@ export default { console.warn("Modal hide failed:", e); } } - document.body.classList.remove('modal-open'); - document.body.style.paddingRight = ''; - document.body.style.overflow = ''; + document.body.classList.remove("modal-open"); + document.body.style.paddingRight = ""; + document.body.style.overflow = ""; } }, }; diff --git a/src/components/ProxyDialog.vue b/src/components/ProxyDialog.vue index 35c752a1b..8c212f265 100644 --- a/src/components/ProxyDialog.vue +++ b/src/components/ProxyDialog.vue @@ -229,7 +229,7 @@ export default { * Clean up modal and restore scroll behavior * @returns {void} */ - cleanupModal() { + cleanupModal() { if (this.modal) { try { this.modal.hide(); @@ -237,9 +237,9 @@ export default { console.warn("Modal hide failed:", e); } } - document.body.classList.remove('modal-open'); - document.body.style.paddingRight = ''; - document.body.style.overflow = ''; + document.body.classList.remove("modal-open"); + document.body.style.paddingRight = ""; + document.body.style.overflow = ""; } }, }; diff --git a/src/components/TagsManager.vue b/src/components/TagsManager.vue index 398cd8bd7..b4938304a 100644 --- a/src/components/TagsManager.vue +++ b/src/components/TagsManager.vue @@ -478,7 +478,7 @@ export default { * Clean up modal and restore scroll behavior * @returns {void} */ - cleanupModal() { + cleanupModal() { if (this.modal) { try { this.modal.hide(); @@ -486,9 +486,9 @@ export default { console.warn("Modal hide failed:", e); } } - document.body.classList.remove('modal-open'); - document.body.style.paddingRight = ''; - document.body.style.overflow = ''; + document.body.classList.remove("modal-open"); + document.body.style.paddingRight = ""; + document.body.style.overflow = ""; } }, };