Fixed refresh system info on header

The refresh button in the App header previously only re-rendered
the main mage section, this change also refreshes the app header
and main content.

Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com>
Change-Id: Iff7f3f14bca8ddfd815ccb1b87dd182c4bfd79ba
diff --git a/src/components/AppHeader/AppHeader.vue b/src/components/AppHeader/AppHeader.vue
index 7211a59..aa5b024 100644
--- a/src/components/AppHeader/AppHeader.vue
+++ b/src/components/AppHeader/AppHeader.vue
@@ -41,7 +41,7 @@
               :alt="altLogo"
             />
           </b-navbar-brand>
-          <div v-if="isNavTagPresent" class="pl-2 nav-tags">
+          <div v-if="isNavTagPresent" :key="routerKey" class="pl-2 nav-tags">
             <span>|</span>
             <span class="pl-3 asset-tag">{{ assetTag }}</span>
             <span class="pl-3">{{ modelType }}</span>
@@ -127,6 +127,9 @@
     LoadingBar,
   },
   mixins: [BVToastMixin],
+  props: {
+    routerKey: Number,
+  },
   data() {
     return {
       isNavigationOpen: false,
diff --git a/src/layouts/AppLayout.vue b/src/layouts/AppLayout.vue
index 41b2e44..0b78e5b 100644
--- a/src/layouts/AppLayout.vue
+++ b/src/layouts/AppLayout.vue
@@ -1,6 +1,11 @@
 <template>
   <div class="app-container">
-    <app-header ref="focusTarget" class="app-header" @refresh="refresh" />
+    <app-header
+      ref="focusTarget"
+      class="app-header"
+      :router-key="routerKey"
+      @refresh="refresh"
+    />
     <app-navigation class="app-navigation" />
     <page-container class="app-content">
       <router-view ref="routerView" :key="routerKey" />