summaryrefslogtreecommitdiff
path: root/src/components/Global
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Global')
-rw-r--r--src/components/Global/PageSection.vue9
-rw-r--r--src/components/Global/PageTitle.vue8
2 files changed, 9 insertions, 8 deletions
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>