Skip to content

Commit

Permalink
Configure title in config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jan 10, 2024
1 parent fb0cc90 commit 0874db7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/layouts/default/View.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
></v-img>
</template>

<v-app-bar-title class="text-center">OGC Building Blocks Viewer</v-app-bar-title>
<v-app-bar-title class="text-center" v-text="pageTitle"></v-app-bar-title>
</v-app-bar>
<v-main>
<router-view v-slot="{ Component }">
Expand All @@ -31,6 +31,7 @@
<script>
import bblockService from "@/services/bblock.service";
import RegisterLoadingProgress from "@/components/RegisterLoadingProgress.vue";
import configService from "@/services/config.service";
export default {
components: {RegisterLoadingProgress},
Expand All @@ -41,6 +42,7 @@ export default {
total: 0,
},
showRegisterLoadingProgress: false,
pageTitle: configService.config.title,
};
},
mounted() {
Expand Down
5 changes: 5 additions & 0 deletions src/services/config.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@ if (showImportedParam !== null) {
config.showImported = false;
}

if (!config.title) {
config.title = 'OGC Location Building Blocks';
}
document.title = config.title;

export default { config, registers };

0 comments on commit 0874db7

Please sign in to comment.