From 04943c85533ca0415fb614565d85e712e4e5b42f Mon Sep 17 00:00:00 2001 From: Logorrheique Date: Mon, 4 Nov 2024 11:15:18 +0100 Subject: [PATCH] Revert "redirect to /dashboard when shrinking on computer from /list on mobile size" This reverts commit bb14bc18cab547e70840d424111e64976f17046b. --- package-lock.json | 4 ++-- src/pages/List.vue | 12 ------------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 328b1d287..100cdcd88 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "uptime-kuma", - "version": "2.0.0-beta.0", + "version": "2.0.0-dev", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "uptime-kuma", - "version": "2.0.0-beta.0", + "version": "2.0.0-dev", "license": "MIT", "dependencies": { "@grpc/grpc-js": "~1.8.22", diff --git a/src/pages/List.vue b/src/pages/List.vue index 53d3f71da..dd2d46059 100644 --- a/src/pages/List.vue +++ b/src/pages/List.vue @@ -11,18 +11,6 @@ export default { components: { MonitorList, }, - mounted() { - if (!this.$root.isMobile && this.$route.path === '/list') { - this.$router.push('/dashboard'); - } - }, - watch: { - '$root.isMobile'(newVal) { - if (!newVal && this.$route.path === '/list') { - this.$router.push('/dashboard'); - } - } - } };