]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - src/components/SearchInput.vue
Fix UptimeKuma status message when all sites are down #503
[github/bastienwirtz/homer.git] / src / components / SearchInput.vue
index c4c11a2dc723695d4cbb3fdf2039480a3bca394a..53480e7e17d4d6f247f7b3c8e09128a045bf5a2b 100644 (file)
@@ -19,8 +19,8 @@ export default {
     value: String,
     hotkey: {
       type: String,
-      default: "/"
-    }
+      default: "/",
+    },
   },
   mounted() {
     this._keyListener = function (event) {
@@ -34,7 +34,7 @@ export default {
     };
     document.addEventListener("keydown", this._keyListener.bind(this));
 
-    // fill seach from get parameter.
+    // fill search from get parameter.
     const search = new URLSearchParams(window.location.search).get("search");
     if (search) {
       this.$refs.search.value = search;
@@ -75,7 +75,7 @@ export default {
       this.$emit("input", value.toLowerCase());
     },
   },
-  beforeDestroy() {
+  beforeUnmount() {
     document.removeEventListener("keydown", this._keyListener);
   },
 };