From 5ca65389651fa5dcfc5933d7c4e4e375ec3936bd Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 21 Jul 2018 22:43:16 -0700 Subject: [PATCH] Autofocus search box when navigating to dashboard --- resources/assets/scripts/components/dashboard/Dashboard.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/assets/scripts/components/dashboard/Dashboard.vue b/resources/assets/scripts/components/dashboard/Dashboard.vue index 4e1905522..1c7e408fd 100644 --- a/resources/assets/scripts/components/dashboard/Dashboard.vue +++ b/resources/assets/scripts/components/dashboard/Dashboard.vue @@ -68,6 +68,8 @@ * iterate through the visible servers and fetch their resource usage. */ mounted: function () { + this.$refs.search.focus(); + window.setTimeout(() => { this._iterateServerResourceUse(); }, 5000);