summaryrefslogtreecommitdiff
path: root/src/layouts
diff options
context:
space:
mode:
authorDixsie Wolmers <dixsie@ibm.com>2020-11-17 01:46:01 +0300
committerDerick Montague <derick.montague@ibm.com>2020-12-01 04:19:33 +0300
commit970ea7d7af09246294474693eca4e6d275a3e27b (patch)
tree51a76aee2ca0bb54de1bfa5480b51910de26511f /src/layouts
parent2aac4d331c88a5b8b1e51749fc00a2a5d1ee3751 (diff)
downloadwebui-vue-970ea7d7af09246294474693eca4e6d275a3e27b.tar.xz
Add back to top button to hardware status page
- Created global back to top button Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I32022613e1ba62667b46150463c8f407b0b4ff11
Diffstat (limited to 'src/layouts')
-rw-r--r--src/layouts/AppLayout.vue5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/layouts/AppLayout.vue b/src/layouts/AppLayout.vue
index a4f73daf..228b25cd 100644
--- a/src/layouts/AppLayout.vue
+++ b/src/layouts/AppLayout.vue
@@ -4,6 +4,8 @@
<app-navigation class="app-navigation" />
<page-container class="app-content">
<router-view ref="routerView" :key="routerKey" />
+ <!-- Scroll to top button -->
+ <button-back-to-top />
</page-container>
</div>
</template>
@@ -12,12 +14,15 @@
import AppHeader from '@/components/AppHeader';
import AppNavigation from '@/components/AppNavigation';
import PageContainer from '@/components/Global/PageContainer';
+import ButtonBackToTop from '@/components/Global/ButtonBackToTop';
+
export default {
name: 'App',
components: {
AppHeader,
AppNavigation,
PageContainer,
+ ButtonBackToTop,
},
data() {
return {