blob: 5878718254c5320f5ccb03e6c67126da067e5493 [file] [log] [blame]
Derick Montaguea2988f42020-01-17 13:46:30 -06001<template>
2 <div id="app">
Derick Montaguee080a1a2019-12-04 16:30:08 -06003 <router-view />
jason westoverd36ac8a2025-11-03 20:58:59 -06004 <confirm-modal />
5 <b-orchestrator />
Derick Montaguea2988f42020-01-17 13:46:30 -06006 </div>
7</template>
8
Derick Montaguea2988f42020-01-17 13:46:30 -06009<script>
jason westoverd36ac8a2025-11-03 20:58:59 -060010import ConfirmModal from '@/components/Global/ConfirmModal.vue';
11import { BOrchestrator } from 'bootstrap-vue-next';
12
Derick Montaguea2988f42020-01-17 13:46:30 -060013export default {
Derick Montaguee2fd1562019-12-20 13:26:53 -060014 name: 'App',
jason westoverd36ac8a2025-11-03 20:58:59 -060015 components: { ConfirmModal, BOrchestrator },
Sukanya Pandeyc5c2ae92020-12-09 16:14:19 +053016 computed: {
17 assetTag() {
Ed Tanous7d6b44c2024-03-23 14:56:34 -070018 return '';
19 //return this.$store.getters['global/assetTag'];
Sukanya Pandeyc5c2ae92020-12-09 16:14:19 +053020 },
21 },
Derick Montaguec8636e52019-12-06 01:28:38 -060022 watch: {
Sukanya Pandeyc5c2ae92020-12-09 16:14:19 +053023 assetTag: function (tag) {
24 if (tag) {
25 document.title = `${tag} - ${this.$route.meta.title}`;
26 }
27 },
Derick Montague602e98a2020-10-21 16:20:00 -050028 $route: function (to) {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070029 document.title = to.meta.title || 'Page is missing title';
Sukanya Pandeyc5c2ae92020-12-09 16:14:19 +053030 if (this.assetTag) {
31 document.title = `${this.assetTag} - ${to.meta.title}`;
32 }
Derick Montague602e98a2020-10-21 16:20:00 -050033 },
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070034 },
Ed Tanous7d6b44c2024-03-23 14:56:34 -070035 getters: {},
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070036 created() {
Ed Tanous7d6b44c2024-03-23 14:56:34 -070037 document.title = '';
38 //document.title = this.$route.meta.title || 'Page is missing title';
Derick Montague602e98a2020-10-21 16:20:00 -050039 },
Derick Montaguea2988f42020-01-17 13:46:30 -060040};
41</script>
Derick Montague602e98a2020-10-21 16:20:00 -050042
43<style lang="scss">
suryav972424b377d2025-01-24 15:06:35 +053044@import '@/assets/styles/_obmc-custom';
Derick Montague602e98a2020-10-21 16:20:00 -050045</style>