diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/AppNavigation/AppNavigation.vue | 1 | ||||
-rw-r--r-- | src/components/Global/PageSection.vue | 9 | ||||
-rw-r--r-- | src/components/Global/PageTitle.vue | 8 |
3 files changed, 10 insertions, 8 deletions
diff --git a/src/components/AppNavigation/AppNavigation.vue b/src/components/AppNavigation/AppNavigation.vue index 2847e664..4c858e81 100644 --- a/src/components/AppNavigation/AppNavigation.vue +++ b/src/components/AppNavigation/AppNavigation.vue @@ -26,6 +26,7 @@ <b-nav-item href="javascript:void(0)"> Manage power usage </b-nav-item> + <b-nav-item to="/control/reboot-bmc">Reboot BMC</b-nav-item> <b-nav-item href="javascript:void(0)">Server LED</b-nav-item> <b-nav-item href="javascript:void(0)"> Server power operations diff --git a/src/components/Global/PageSection.vue b/src/components/Global/PageSection.vue index 03040b29..dcd85e61 100644 --- a/src/components/Global/PageSection.vue +++ b/src/components/Global/PageSection.vue @@ -1,8 +1,8 @@ <template> - <section class="page-section"> - <h2>{{ sectionTitle }}</h2> + <div class="page-section"> + <h2 v-if="sectionTitle">{{ sectionTitle }}</h2> <slot /> - </section> + </div> </template> <script> @@ -11,7 +11,7 @@ export default { props: { sectionTitle: { type: String, - required: true + default: '' } } }; @@ -21,6 +21,7 @@ export default { .page-section { margin-bottom: $spacer * 2; } + h2 { @include font-size($h4-font-size); margin-bottom: $spacer; diff --git a/src/components/Global/PageTitle.vue b/src/components/Global/PageTitle.vue index 59bb6a1e..17c08849 100644 --- a/src/components/Global/PageTitle.vue +++ b/src/components/Global/PageTitle.vue @@ -14,10 +14,10 @@ export default { default: '' } }, - computed: { - title() { - return this.$t(this.$route.meta.title); - } + data() { + return { + title: this.$t(this.$route.meta.title) + }; } }; </script> |