Compare commits

...

12 Commits

View File

@ -78,11 +78,15 @@ export default {
async mounted() { async mounted() {
await this.$nextTick(); await this.$nextTick();
// Hide tree and/or inspector pane if specified in URL // Hide tree and/or inspector pane if specified in URL
this.handleHideUrl(); if (this.collapsable) {
this.openmct.router.on('change:params', this.handleHideUrl); this.handleHideUrl();
this.openmct.router.on('change:params', this.handleHideUrl);
}
}, },
beforeDestroy() { beforeDestroy() {
this.openmct.router.off('change:params', this.handleHideUrl); if (this.collapsable) {
this.openmct.router.off('change:params', this.handleHideUrl);
}
}, },
methods: { methods: {
toggleCollapse: function (e) { toggleCollapse: function (e) {