Compare commits
	
		
			13 Commits
		
	
	
		
			mct6555-mc
			...
			vue-3-migr
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 1258b89d39 | ||
|   | 034337aed3 | ||
|   | f3376ad861 | ||
|   | 59a14c91fd | ||
|   | 03833fbdee | ||
|   | 3214ceb80c | ||
|   | d638314cbd | ||
|   | d599084816 | ||
|   | 1efe9b56b1 | ||
|   | 5ea92674bd | ||
|   | 50996d3a54 | ||
|   | db300d861c | ||
|   | ac809b6e13 | 
| @@ -64,6 +64,7 @@ | ||||
|         </style> | ||||
|     </head> | ||||
|     <body> | ||||
|         <div></div> | ||||
|     </body> | ||||
|     <script> | ||||
|         const THIRTY_SECONDS = 30 * 1000; | ||||
| @@ -75,7 +76,8 @@ | ||||
|         const TWO_HOURS = ONE_HOUR * 2; | ||||
|         const ONE_DAY = ONE_HOUR * 24; | ||||
|  | ||||
|         openmct.install(openmct.plugins.LocalStorage()); | ||||
|         // openmct.install(openmct.plugins.LocalStorage()); | ||||
|         openmct.install(openmct.plugins.CouchDB("http://localhost:5984/openmct")); | ||||
|  | ||||
|         openmct.install(openmct.plugins.example.Generator()); | ||||
|         openmct.install(openmct.plugins.example.EventGeneratorPlugin()); | ||||
|   | ||||
| @@ -59,10 +59,11 @@ | ||||
|     "style-loader": "^3.3.1", | ||||
|     "typescript": "4.9.3", | ||||
|     "uuid": "9.0.0", | ||||
|     "vue": "2.6.14", | ||||
|     "vue": "^3.1.0", | ||||
|     "@vue/compat": "^3.1.0", | ||||
|     "vue-eslint-parser": "9.1.0", | ||||
|     "vue-loader": "15.9.8", | ||||
|     "vue-template-compiler": "2.6.14", | ||||
|     "vue-loader": "^16.0.0", | ||||
|     "@vue/compiler-sfc": "^3.1.0", | ||||
|     "webpack": "5.74.0", | ||||
|     "webpack-cli": "5.0.0", | ||||
|     "webpack-dev-server": "4.11.1", | ||||
|   | ||||
| @@ -328,7 +328,7 @@ define([ | ||||
|      * @param {HTMLElement} [domElement] the DOM element in which to run | ||||
|      *        MCT; if undefined, MCT will be run in the body of the document | ||||
|      */ | ||||
|     MCT.prototype.start = function (domElement = document.body, isHeadlessMode = false) { | ||||
|     MCT.prototype.start = function (domElement = document.body.firstElementChild, isHeadlessMode = false) { | ||||
|         if (this.types.get('layout') === undefined) { | ||||
|             this.install(this.plugins.DisplayLayout({ | ||||
|                 showAsView: ['summary-widget'] | ||||
| @@ -349,7 +349,7 @@ define([ | ||||
|          */ | ||||
|  | ||||
|         if (!isHeadlessMode) { | ||||
|             const appLayout = new Vue({ | ||||
|             const appLayout = Vue.createApp({ | ||||
|                 components: { | ||||
|                     'Layout': Layout.default | ||||
|                 }, | ||||
| @@ -358,9 +358,8 @@ define([ | ||||
|                 }, | ||||
|                 template: '<Layout ref="layout"></Layout>' | ||||
|             }); | ||||
|             domElement.appendChild(appLayout.$mount().$el); | ||||
|  | ||||
|             this.layout = appLayout.$refs.layout; | ||||
|             appLayout.mount(domElement); | ||||
|             this.layout = appLayout._instance.refs.layout; | ||||
|             Browse(this); | ||||
|         } | ||||
|  | ||||
|   | ||||
| @@ -109,7 +109,7 @@ export default { | ||||
|  | ||||
|         this.formControl.show(this.$refs.rowElement, this.row, this.onChange); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         const destroy = this.formControl.destroy; | ||||
|         if (destroy) { | ||||
|             destroy(); | ||||
|   | ||||
| @@ -173,7 +173,7 @@ export default { | ||||
|             this.options = this.model.options; | ||||
|         } | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         document.body.removeEventListener('click', this.handleOutsideClick); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -9,11 +9,9 @@ | ||||
|     > | ||||
|         <template | ||||
|             v-for="(actionGroups, index) in options.actions" | ||||
|             :key="index" | ||||
|         > | ||||
|             <div | ||||
|                 :key="index" | ||||
|                 role="group" | ||||
|             > | ||||
|             <div role="group"> | ||||
|                 <li | ||||
|                     v-for="action in actionGroups" | ||||
|                     :key="action.name" | ||||
|   | ||||
| @@ -10,11 +10,9 @@ | ||||
|     > | ||||
|         <template | ||||
|             v-for="(actionGroups, index) in options.actions" | ||||
|             :key="index" | ||||
|         > | ||||
|             <div | ||||
|                 :key="index" | ||||
|                 role="group" | ||||
|             > | ||||
|             <div role="group"> | ||||
|                 <li | ||||
|                     v-for="action in actionGroups" | ||||
|                     :key="action.name" | ||||
|   | ||||
| @@ -147,7 +147,7 @@ export default { | ||||
|             this.setUnit(); | ||||
|         } | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         this.openmct.time.off('timeSystem', this.updateTimeSystem); | ||||
|         this.telemetryCollection.off('add', this.setLatestValues); | ||||
|         this.telemetryCollection.off('clear', this.resetValues); | ||||
|   | ||||
| @@ -89,7 +89,7 @@ export default { | ||||
|         this.composition.on('reorder', this.reorder); | ||||
|         this.composition.load(); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         this.composition.off('add', this.addItem); | ||||
|         this.composition.off('remove', this.removeItem); | ||||
|         this.composition.off('reorder', this.reorder); | ||||
|   | ||||
| @@ -33,11 +33,9 @@ | ||||
|     <tbody> | ||||
|         <template | ||||
|             v-for="ladTable in ladTableObjects" | ||||
|             :key="ladTable.key" | ||||
|         > | ||||
|             <tr | ||||
|                 :key="ladTable.key" | ||||
|                 class="c-table__group-header js-lad-table-set__table-headers" | ||||
|             > | ||||
|             <tr class="c-table__group-header js-lad-table-set__table-headers"> | ||||
|                 <td colspan="10"> | ||||
|                     {{ ladTable.domainObject.name }} | ||||
|                 </td> | ||||
| @@ -104,7 +102,7 @@ export default { | ||||
|         this.composition.on('reorder', this.reorderLadTables); | ||||
|         this.composition.load(); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         this.composition.off('add', this.addLadTable); | ||||
|         this.composition.off('remove', this.removeLadTable); | ||||
|         this.composition.off('reorder', this.reorderLadTables); | ||||
|   | ||||
| @@ -93,7 +93,7 @@ define([ | ||||
|                 rowCount: 'reflow' | ||||
|             }, | ||||
|             template: autoflowTemplate, | ||||
|             destroyed: function () { | ||||
|             unmounted: function () { | ||||
|                 controller.destroy(); | ||||
|  | ||||
|                 if (interval) { | ||||
|   | ||||
| @@ -84,7 +84,7 @@ export default { | ||||
|         }); | ||||
|         this.registerListeners(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.plotResizeObserver) { | ||||
|             this.plotResizeObserver.unobserve(this.$refs.plotWrapper); | ||||
|             clearTimeout(this.resizeTimer); | ||||
|   | ||||
| @@ -71,7 +71,7 @@ export default { | ||||
|         this.unobserveInterpolation = this.openmct.objects.observe(this.domainObject, 'configuration.useInterpolation', this.refreshData); | ||||
|         this.unobserveBar = this.openmct.objects.observe(this.domainObject, 'configuration.useBar', this.refreshData); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.stopFollowingTimeContext(); | ||||
|  | ||||
|         this.removeAllSubscriptions(); | ||||
|   | ||||
| @@ -209,7 +209,7 @@ export default { | ||||
|         this.registerListeners(); | ||||
|         this.composition.load(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.openmct.editor.off('isEditing', this.setEditState); | ||||
|         this.stopListening(); | ||||
|     }, | ||||
|   | ||||
| @@ -115,7 +115,7 @@ export default { | ||||
|         this.initColorAndName(); | ||||
|         this.removeBarStylesListener = this.openmct.objects.observe(this.domainObject, `configuration.barStyles.series["${this.key}"]`, this.initColorAndName); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.removeBarStylesListener) { | ||||
|             this.removeBarStylesListener(); | ||||
|         } | ||||
|   | ||||
| @@ -69,7 +69,7 @@ export default { | ||||
|         this.unobserve = this.openmct.objects.observe(this.domainObject, 'configuration.axes', this.reloadTelemetry); | ||||
|         this.unobserveUnderlayRanges = this.openmct.objects.observe(this.domainObject, 'configuration.ranges', this.reloadTelemetry); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.stopFollowingTimeContext(); | ||||
|  | ||||
|         if (!this.composition) { | ||||
|   | ||||
| @@ -91,7 +91,7 @@ export default { | ||||
|  | ||||
|         this.$refs.plot.on('plotly_relayout', this.zoom); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.$refs.plot && this.$refs.plot.off) { | ||||
|             this.$refs.plot.off('plotly_relayout', this.zoom); | ||||
|         } | ||||
|   | ||||
| @@ -52,7 +52,7 @@ export default { | ||||
|     mounted() { | ||||
|         this.openmct.editor.on('isEditing', this.setEditState); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.openmct.editor.off('isEditing', this.setEditState); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -70,7 +70,7 @@ export default { | ||||
|         this.registerListeners(); | ||||
|         this.composition.load(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.stopListening(); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -101,7 +101,7 @@ export default { | ||||
|         this.registerListeners(); | ||||
|         this.composition.load(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.stopListening(); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -85,7 +85,7 @@ export default { | ||||
|     mounted() { | ||||
|         this.unlisten = ticker.listen(this.tick); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.unlisten) { | ||||
|             this.unlisten(); | ||||
|         } | ||||
|   | ||||
| @@ -48,7 +48,7 @@ export default { | ||||
|     mounted() { | ||||
|         this.unlisten = ticker.listen(this.tick); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.unlisten) { | ||||
|             this.unlisten(); | ||||
|         } | ||||
|   | ||||
| @@ -295,7 +295,7 @@ export default { | ||||
|             return false; | ||||
|         } | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         this.destroy(); | ||||
|     }, | ||||
|     mounted() { | ||||
|   | ||||
| @@ -128,7 +128,7 @@ export default { | ||||
|             deep: true | ||||
|         } | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         this.composition.off('add', this.addTelemetryObject); | ||||
|         this.composition.off('remove', this.removeTelemetryObject); | ||||
|         if (this.conditionManager) { | ||||
|   | ||||
| @@ -180,7 +180,7 @@ export default { | ||||
|             deep: true | ||||
|         } | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.resetApplied(); | ||||
|     }, | ||||
|     mounted() { | ||||
|   | ||||
| @@ -253,7 +253,7 @@ export default { | ||||
|             return this.styleableFontItems.length && this.allowEditing; | ||||
|         } | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         this.removeListeners(); | ||||
|         this.openmct.editor.off('isEditing', this.setEditState); | ||||
|         this.stylesManager.off('styleSelected', this.applyStyleToSelection); | ||||
|   | ||||
| @@ -75,7 +75,7 @@ export default { | ||||
|             this.listenToConditionSetChanges(); | ||||
|         } | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.conditionSetIdentifier = null; | ||||
|  | ||||
|         if (this.unlisten) { | ||||
|   | ||||
| @@ -66,7 +66,7 @@ export default { | ||||
|         this.openmct.selection.on('change', this.handleSelection); | ||||
|         this.handleSelection(this.openmct.selection.get()); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         this.openmct.editor.off('isEditing', this.toggleEdit); | ||||
|         this.openmct.selection.off('change', this.handleSelection); | ||||
|     }, | ||||
|   | ||||
| @@ -113,7 +113,7 @@ export default { | ||||
|         this.removeSelectable = this.openmct.selection.selectable( | ||||
|             this.$el, this.context, this.initSelect); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         if (this.removeSelectable) { | ||||
|             this.removeSelectable(); | ||||
|         } | ||||
|   | ||||
| @@ -225,7 +225,7 @@ export default { | ||||
|  | ||||
|         this.watchDisplayResize(); | ||||
|     }, | ||||
|     destroyed: function () { | ||||
|     unmounted: function () { | ||||
|         this.openmct.selection.off('change', this.setSelection); | ||||
|         this.composition.off('add', this.addChild); | ||||
|         this.composition.off('remove', this.removeChild); | ||||
|   | ||||
| @@ -113,7 +113,7 @@ export default { | ||||
|         this.removeSelectable = this.openmct.selection.selectable( | ||||
|             this.$el, this.context, this.initSelect); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         if (this.removeSelectable) { | ||||
|             this.removeSelectable(); | ||||
|         } | ||||
|   | ||||
| @@ -120,7 +120,7 @@ export default { | ||||
|         this.removeSelectable = this.openmct.selection.selectable( | ||||
|             this.$el, this.context, this.initSelect); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         if (this.removeSelectable) { | ||||
|             this.removeSelectable(); | ||||
|         } | ||||
|   | ||||
| @@ -269,7 +269,7 @@ export default { | ||||
|         }; | ||||
|         this.removeSelectable = this.openmct.selection.selectable(this.$el, this.context, this.initSelect); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         if (this.removeSelectable) { | ||||
|             this.removeSelectable(); | ||||
|         } | ||||
|   | ||||
| @@ -138,7 +138,7 @@ export default { | ||||
|                 .then(this.setObject); | ||||
|         } | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.removeSelectable) { | ||||
|             this.removeSelectable(); | ||||
|         } | ||||
|   | ||||
| @@ -225,7 +225,7 @@ export default { | ||||
|         this.status = this.openmct.status.get(this.item.identifier); | ||||
|         this.removeStatusListener = this.openmct.status.observe(this.item.identifier, this.setStatus); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.removeStatusListener(); | ||||
|  | ||||
|         if (this.removeSelectable) { | ||||
|   | ||||
| @@ -122,7 +122,7 @@ export default { | ||||
|         this.removeSelectable = this.openmct.selection.selectable( | ||||
|             this.$el, this.context, this.initSelect); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         if (this.removeSelectable) { | ||||
|             this.removeSelectable(); | ||||
|         } | ||||
|   | ||||
| @@ -38,7 +38,7 @@ export default { | ||||
|         this.objectStyle = this.getObjectStyleForItem(this.parentDomainObject.configuration.objectStyles); | ||||
|         this.initObjectStyles(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.stopListeningObjectStyles) { | ||||
|             this.stopListeningObjectStyles(); | ||||
|         } | ||||
|   | ||||
| @@ -47,7 +47,7 @@ export default { | ||||
|         this.unsubscribe = this.openmct.faults | ||||
|             .subscribe(this.domainObject, this.updateFault); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.unsubscribe) { | ||||
|             this.unsubscribe(); | ||||
|         } | ||||
|   | ||||
| @@ -89,7 +89,7 @@ export default { | ||||
|     mounted() { | ||||
|         this.openmct.editor.on('isEditing', this.toggleIsEditing); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.openmct.editor.off('isEditing', this.toggleIsEditing); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -121,7 +121,7 @@ export default { | ||||
|         this.objectCssClass = type.definition.cssClass; | ||||
|         this.openmct.editor.on('isEditing', this.toggleIsEditing); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.openmct.editor.off('isEditing', this.toggleIsEditing); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -91,7 +91,7 @@ export default { | ||||
|         this.unobserve = this.openmct.objects.observe(this.providedObject, 'configuration.filters', this.updatePersistedFilters); | ||||
|         this.unobserveGlobalFilters = this.openmct.objects.observe(this.providedObject, 'configuration.globalFilters', this.updateGlobalFilters); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.composition.off('add', this.addChildren); | ||||
|         this.composition.off('remove', this.removeChildren); | ||||
|         this.unobserve(); | ||||
|   | ||||
| @@ -45,9 +45,9 @@ | ||||
|     <div class="c-fl-container__frames-holder"> | ||||
|         <template | ||||
|             v-for="(frame, i) in frames" | ||||
|             :key="frame.id" | ||||
|         > | ||||
|             <frame-component | ||||
|                 :key="frame.id" | ||||
|                 class="c-fl-container__frame" | ||||
|                 :frame="frame" | ||||
|                 :index="i" | ||||
| @@ -57,7 +57,6 @@ | ||||
|             /> | ||||
|  | ||||
|             <drop-hint | ||||
|                 :key="'hint-' + i" | ||||
|                 class="c-fl-frame__drop-hint" | ||||
|                 :index="i" | ||||
|                 :allow-drop="allowDrop" | ||||
| @@ -66,7 +65,6 @@ | ||||
|  | ||||
|             <resize-handle | ||||
|                 v-if="(i !== frames.length - 1)" | ||||
|                 :key="'handle-' + i" | ||||
|                 :index="i" | ||||
|                 :orientation="rowsLayout ? 'horizontal' : 'vertical'" | ||||
|                 :is-editing="isEditing" | ||||
| @@ -134,7 +132,7 @@ export default { | ||||
|  | ||||
|         this.unsubscribeSelection = this.openmct.selection.selectable(this.$el, context, false); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.unsubscribeSelection(); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -56,7 +56,7 @@ export default { | ||||
|         document.addEventListener('dragend', this.dragend); | ||||
|         document.addEventListener('drop', this.dragend); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         document.removeEventListener('dragstart', this.dragstart); | ||||
|         document.removeEventListener('dragend', this.dragend); | ||||
|         document.removeEventListener('drop', this.dragend); | ||||
|   | ||||
| @@ -40,10 +40,12 @@ | ||||
|             'c-fl--rows': rowsLayout === true | ||||
|         }" | ||||
|     > | ||||
|         <template v-for="(container, index) in containers"> | ||||
|         <template | ||||
|             v-for="(container, index) in containers" | ||||
|             :key="`hint-top-${container.id}`" | ||||
|         > | ||||
|             <drop-hint | ||||
|                 v-if="index === 0 && containers.length > 1" | ||||
|                 :key="`hint-top-${container.id}`" | ||||
|                 class="c-fl-frame__drop-hint" | ||||
|                 :index="-1" | ||||
|                 :allow-drop="allowContainerDrop" | ||||
| @@ -51,7 +53,6 @@ | ||||
|             /> | ||||
|  | ||||
|             <container-component | ||||
|                 :key="`component-${container.id}`" | ||||
|                 class="c-fl__container" | ||||
|                 :index="index" | ||||
|                 :container="container" | ||||
| @@ -66,7 +67,6 @@ | ||||
|  | ||||
|             <resize-handle | ||||
|                 v-if="index !== (containers.length - 1)" | ||||
|                 :key="`handle-${container.id}`" | ||||
|                 :index="index" | ||||
|                 :orientation="rowsLayout ? 'vertical' : 'horizontal'" | ||||
|                 :is-editing="isEditing" | ||||
| @@ -77,7 +77,6 @@ | ||||
|  | ||||
|             <drop-hint | ||||
|                 v-if="containers.length > 1" | ||||
|                 :key="`hint-bottom-${container.id}`" | ||||
|                 class="c-fl-frame__drop-hint" | ||||
|                 :index="index" | ||||
|                 :allow-drop="allowContainerDrop" | ||||
| @@ -180,7 +179,7 @@ export default { | ||||
|         this.composition.on('add', this.addFrame); | ||||
|         this.composition.load(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.composition.off('remove', this.removeChildObject); | ||||
|         this.composition.off('add', this.addFrame); | ||||
|     }, | ||||
|   | ||||
| @@ -113,7 +113,7 @@ export default { | ||||
|  | ||||
|         this.dragGhost = document.getElementById('js-fl-drag-ghost'); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.domainObjectPromise) { | ||||
|             this.domainObjectPromise.then(() => { | ||||
|                 if (this?.domainObject?.isMutable) { | ||||
|   | ||||
| @@ -56,7 +56,7 @@ export default { | ||||
|         document.addEventListener('dragend', this.unsetDragging); | ||||
|         document.addEventListener('drop', this.unsetDragging); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         document.removeEventListener('dragstart', this.setDragging); | ||||
|         document.removeEventListener('dragend', this.unsetDragging); | ||||
|         document.removeEventListener('drop', this.unsetDragging); | ||||
|   | ||||
| @@ -23,7 +23,7 @@ export default { | ||||
|         this.composition.on('remove', this.remove); | ||||
|         this.composition.load(); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         if (!this.composition) { | ||||
|             return; | ||||
|         } | ||||
|   | ||||
| @@ -27,7 +27,7 @@ export default { | ||||
|         this.status = this.openmct.status.get(identifier); | ||||
|         this.removeStatusListener = this.openmct.status.observe(identifier, this.setStatus); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         this.removeStatusListener(); | ||||
|     } | ||||
| }; | ||||
|   | ||||
| @@ -536,7 +536,7 @@ export default { | ||||
|         this.openmct.time.on('bounds', this.refreshData); | ||||
|         this.openmct.time.on('timeSystem', this.setTimeSystem); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         this.composition.off('add', this.addedToComposition); | ||||
|         this.composition.off('remove', this.removeTelemetryObject); | ||||
|  | ||||
|   | ||||
| @@ -159,7 +159,7 @@ export default { | ||||
|         document.addEventListener('keyup', this.handleKeyUp); | ||||
|         this.clearWheelZoom = _.debounce(this.clearWheelZoom, 600); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         document.removeEventListener('keydown', this.handleKeyDown); | ||||
|         document.removeEventListener('keyup', this.handleKeyUp); | ||||
|     }, | ||||
|   | ||||
| @@ -93,7 +93,7 @@ export default { | ||||
|  | ||||
|         this.unlisten = this.openmct.objects.observe(this.domainObject, '*', this.observeForChanges); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.imageryStripResizeObserver) { | ||||
|             this.imageryStripResizeObserver.disconnect(); | ||||
|         } | ||||
|   | ||||
| @@ -175,7 +175,7 @@ | ||||
|                 :selected="focusedImageIndex === index && isPaused" | ||||
|                 :real-time="!isFixed" | ||||
|                 :viewable-area="focusedImageIndex === index ? viewableArea : null" | ||||
|                 @click.native="thumbnailClicked(index)" | ||||
|                 @click="thumbnailClicked(index)" | ||||
|             /> | ||||
|         </div> | ||||
|  | ||||
| @@ -643,7 +643,7 @@ export default { | ||||
|         this.listenTo(this.focusedImageWrapper, 'wheel', this.wheelZoom, this); | ||||
|         this.loadVisibleLayers(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.persistVisibleLayers(); | ||||
|         this.stopFollowingTimeContext(); | ||||
|  | ||||
|   | ||||
| @@ -46,7 +46,7 @@ export default { | ||||
|     mounted() { | ||||
|         document.addEventListener('click', this.hideMenu); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         document.removeEventListener('click', this.hideMenu); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -50,7 +50,7 @@ export default { | ||||
|         this.telemetryCollection.on('clear', this.dataCleared); | ||||
|         this.telemetryCollection.load(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.unsubscribe) { | ||||
|             this.unsubscribe(); | ||||
|             delete this.unsubscribe; | ||||
|   | ||||
| @@ -302,7 +302,7 @@ export default { | ||||
|         this.filterAndSortEntries(); | ||||
|         this.unobserveEntries = this.openmct.objects.observe(this.domainObject, '*', this.filterAndSortEntries); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.unlisten) { | ||||
|             this.unlisten(); | ||||
|         } | ||||
|   | ||||
| @@ -90,7 +90,7 @@ export default { | ||||
|             }; | ||||
|         } | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.openmct.user.status.off('statusChange', this.setStatus); | ||||
|         this.openmct.user.status.off('pollQuestionChange', this.setPollQuestion); | ||||
|     }, | ||||
|   | ||||
| @@ -117,7 +117,7 @@ export default { | ||||
|         this.fetchStatusSummary(); | ||||
|         this.openmct.user.status.on('statusChange', this.fetchStatusSummary); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.openmct.user.status.off('statusChange', this.fetchStatusSummary); | ||||
|         this.openmct.user.status.off('pollQuestionChange', this.setPollQuestion); | ||||
|     }, | ||||
|   | ||||
| @@ -27,7 +27,7 @@ | ||||
| > | ||||
|     <template v-if="viewBounds && !options.compact"> | ||||
|         <swim-lane> | ||||
|             <template slot="label">{{ timeSystem.name }}</template> | ||||
|             <slot name="label">{{ timeSystem.name }}</slot> | ||||
|             <timeline-axis | ||||
|                 slot="object" | ||||
|                 :bounds="viewBounds" | ||||
| @@ -107,7 +107,7 @@ export default { | ||||
|         this.removeStatusListener = this.openmct.status.observe(this.domainObject.identifier, this.setStatus); | ||||
|         this.status = this.openmct.status.get(this.domainObject.identifier); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         clearInterval(this.resizeTimer); | ||||
|         this.stopFollowingTimeContext(); | ||||
|         if (this.unlisten) { | ||||
|   | ||||
| @@ -65,7 +65,7 @@ export default { | ||||
|         this.openmct.selection.on('change', this.updateSelection); | ||||
|         this.openmct.time.on('timeSystem', this.setFormatters); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.openmct.selection.off('change', this.updateSelection); | ||||
|         this.openmct.time.off('timeSystem', this.setFormatters); | ||||
|     }, | ||||
|   | ||||
| @@ -365,7 +365,7 @@ export default { | ||||
|  | ||||
|         this.loaded = true; | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         document.removeEventListener('keydown', this.handleKeyDown); | ||||
|         document.removeEventListener('keyup', this.handleKeyUp); | ||||
|         this.destroy(); | ||||
|   | ||||
| @@ -131,7 +131,7 @@ export default { | ||||
|         this.listenTo(this.axis, 'change:key', this.updateTicksForceRegeneration, this); | ||||
|         this.updateTicks(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.stopListening(); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -81,7 +81,7 @@ export default { | ||||
|         eventHelpers.extend(this); | ||||
|         this.imageExporter = new ImageExporter(this.openmct); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.destroy(); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -89,7 +89,7 @@ export default { | ||||
|         this.openmct.time.on('timeSystem', this.syncXAxisToTimeSystem); | ||||
|         this.listenTo(this.xAxis, 'change', this.setUpXAxisOptions); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.openmct.time.off('timeSystem', this.syncXAxisToTimeSystem); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -117,7 +117,7 @@ export default { | ||||
|         this.config.series.forEach(this.onSeriesAdd, this); | ||||
|         this.$emit('chartLoaded'); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.destroy(); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -52,7 +52,7 @@ export default { | ||||
|     mounted() { | ||||
|         this.openmct.editor.on('isEditing', this.setEditState); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.openmct.editor.off('isEditing', this.setEditState); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -192,7 +192,7 @@ export default { | ||||
|         this.loaded = true; | ||||
|  | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.stopListening(); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -94,7 +94,7 @@ export default { | ||||
|         this.registerListeners(); | ||||
|         this.loaded = true; | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.stopListening(); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -163,7 +163,7 @@ export default { | ||||
|         this.status = this.openmct.status.get(this.series.domainObject.identifier); | ||||
|         this.removeStatusListener = this.openmct.status.observe(this.series.domainObject.identifier, this.setStatus); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.removeStatusListener) { | ||||
|             this.removeStatusListener(); | ||||
|         } | ||||
|   | ||||
| @@ -218,7 +218,7 @@ export default { | ||||
|         this.status = this.openmct.status.get(this.series.domainObject.identifier); | ||||
|         this.removeStatusListener = this.openmct.status.observe(this.series.domainObject.identifier, this.setStatus); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.removeStatusListener) { | ||||
|             this.removeStatusListener(); | ||||
|         } | ||||
|   | ||||
| @@ -114,7 +114,7 @@ export default { | ||||
|         }, this); | ||||
|         this.initialize(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.stopListening(); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -151,7 +151,7 @@ export default { | ||||
|         }, this); | ||||
|         this.initialize(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.stopListening(); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -116,7 +116,7 @@ export default { | ||||
|             return Math.max(...Object.values(this.tickWidthMap)); | ||||
|         } | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.destroy(); | ||||
|     }, | ||||
|     mounted() { | ||||
|   | ||||
| @@ -98,7 +98,7 @@ export default { | ||||
|     mounted() { | ||||
|         this.updateView(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.removeSelectable) { | ||||
|             this.removeSelectable(); | ||||
|         } | ||||
|   | ||||
| @@ -34,7 +34,7 @@ export default { | ||||
|         this.objectStyles = this.getObjectStyleForItem(this.childObject.configuration); | ||||
|         this.initObjectStyles(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.stopListeningStyles) { | ||||
|             this.stopListeningStyles(); | ||||
|         } | ||||
|   | ||||
| @@ -147,10 +147,10 @@ export default { | ||||
|         document.addEventListener('dragstart', this.dragstart); | ||||
|         document.addEventListener('dragend', this.dragend); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.persistCurrentTabIndex(this.currentTabIndex); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         this.composition.off('add', this.addItem); | ||||
|         this.composition.off('remove', this.removeItem); | ||||
|         this.composition.off('reorder', this.onReorder); | ||||
|   | ||||
| @@ -28,7 +28,7 @@ export default { | ||||
|             this.pollForRowHeight(); | ||||
|         } | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         this.clearPoll(); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -97,7 +97,7 @@ export default { | ||||
|                 this.unlisteners.push(compositionCollection.off.bind(compositionCollection, 'remove', this.removeObject)); | ||||
|             }); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         this.tableConfiguration.destroy(); | ||||
|         this.openmct.editor.off('isEditing', this.toggleEdit); | ||||
|         this.unlisteners.forEach((unlisten) => unlisten()); | ||||
|   | ||||
| @@ -94,7 +94,7 @@ export default { | ||||
|         this.table.configuration.on('change', this.handleConfigurationChanges); | ||||
|         this.updateFilters(filters); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         this.table.configuration.off('change', this.handleConfigurationChanges); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -257,11 +257,11 @@ | ||||
|                 @change-height="setRowHeight" | ||||
|             /> | ||||
|             <tr> | ||||
|                 <template v-for="(title, key) in headers"> | ||||
|                     <th | ||||
|                         :key="key" | ||||
|                         :style="{ width: configuredColumnWidths[key] + 'px', 'max-width': configuredColumnWidths[key] + 'px'}" | ||||
|                     > | ||||
|                 <template | ||||
|                     v-for="(title, key) in headers" | ||||
|                     :key="key" | ||||
|                 > | ||||
|                     <th :style="{ width: configuredColumnWidths[key] + 'px', 'max-width': configuredColumnWidths[key] + 'px'}"> | ||||
|                         {{ title }} | ||||
|                     </th> | ||||
|                 </template> | ||||
| @@ -510,7 +510,7 @@ export default { | ||||
|  | ||||
|         this.table.initialize(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.table.off('object-added', this.addObject); | ||||
|         this.table.off('object-removed', this.removeObject); | ||||
|         this.table.off('historical-rows-processed', this.checkForMarkedRows); | ||||
|   | ||||
| @@ -139,7 +139,7 @@ export default { | ||||
|         this.openmct.time.on('timeSystem', this.setTimeSystem); | ||||
|         this.openmct.time.on('clock', this.setViewFromClock); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         document.removeEventListener('keydown', this.handleKeyDown); | ||||
|         document.removeEventListener('keyup', this.handleKeyUp); | ||||
|     }, | ||||
|   | ||||
| @@ -125,7 +125,7 @@ export default { | ||||
|         this.openmct.time.on('timeSystem', this.setTimeSystem); | ||||
|         this.setTimeContext(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.clearAllValidation(); | ||||
|         this.openmct.time.off('timeSystem', this.setTimeSystem); | ||||
|         this.stopFollowingTimeContext(); | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
|             :bottom="keyString !== undefined" | ||||
|             :type="'start'" | ||||
|             :offset="offsets.start" | ||||
|             @focus.native="$event.target.select()" | ||||
|             @focus="$event.target.select()" | ||||
|             @hide="hideAllTimePopups" | ||||
|             @update="timePopUpdate" | ||||
|         /> | ||||
| @@ -54,7 +54,7 @@ | ||||
|             :bottom="keyString !== undefined" | ||||
|             :type="'end'" | ||||
|             :offset="offsets.end" | ||||
|             @focus.native="$event.target.select()" | ||||
|             @focus="$event.target.select()" | ||||
|             @hide="hideAllTimePopups" | ||||
|             @update="timePopUpdate" | ||||
|         /> | ||||
| @@ -147,7 +147,7 @@ export default { | ||||
|         this.openmct.time.on('timeSystem', this.setTimeSystem); | ||||
|         this.setTimeContext(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.openmct.time.off('timeSystem', this.setTimeSystem); | ||||
|         this.stopFollowingTime(); | ||||
|     }, | ||||
|   | ||||
| @@ -60,7 +60,7 @@ export default { | ||||
|  | ||||
|         this.openmct.time.on('clock', this.setViewFromClock); | ||||
|     }, | ||||
|     destroyed: function () { | ||||
|     unmounted: function () { | ||||
|         this.openmct.time.off('clock', this.setViewFromClock); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -50,7 +50,7 @@ export default { | ||||
|         this.openmct.time.on('timeSystem', this.setViewFromTimeSystem); | ||||
|         this.openmct.time.on('clock', this.setViewFromClock); | ||||
|     }, | ||||
|     destroyed: function () { | ||||
|     unmounted: function () { | ||||
|         this.openmct.time.off('timeSystem', this.setViewFromTimeSystem); | ||||
|         this.openmct.time.on('clock', this.setViewFromClock); | ||||
|     }, | ||||
|   | ||||
| @@ -135,7 +135,7 @@ export default { | ||||
|     mounted() { | ||||
|         this.initialize(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.stopFollowingTimeContext(); | ||||
|         this.destroyIndependentTime(); | ||||
|     }, | ||||
|   | ||||
| @@ -98,7 +98,7 @@ export default { | ||||
|  | ||||
|         this.followTimeConductor(); | ||||
|     }, | ||||
|     destroyed: function () { | ||||
|     unmounted: function () { | ||||
|         this.stopFollowTimeConductor(); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -20,6 +20,7 @@ | ||||
|  * at runtime from the About dialog for additional information. | ||||
|  *****************************************************************************/ | ||||
|  | ||||
| import { markRaw } from 'vue'; | ||||
| import Conductor from './Conductor.vue'; | ||||
|  | ||||
| function isTruthy(a) { | ||||
| @@ -91,16 +92,17 @@ function throwIfError(configResult) { | ||||
| } | ||||
|  | ||||
| function mountComponent(openmct, configuration) { | ||||
|     openmct.layout.conductorComponent = Object.create({ | ||||
|     const conductorApp = { | ||||
|         components: { | ||||
|             Conductor | ||||
|         }, | ||||
|         template: "<conductor></conductor>", | ||||
|         provide: { | ||||
|             openmct: openmct, | ||||
|             configuration: configuration | ||||
|         } | ||||
|     }); | ||||
|         }, | ||||
|         template: "<conductor />" | ||||
|     }; | ||||
|     openmct.layout.conductorComponent = markRaw(conductorApp); | ||||
| } | ||||
|  | ||||
| export default function (config) { | ||||
|   | ||||
| @@ -110,7 +110,7 @@ export default { | ||||
|         this.setOffset(); | ||||
|         document.addEventListener('click', this.hide); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         document.removeEventListener('click', this.hide); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -83,7 +83,7 @@ export default { | ||||
|                 .then(this.setObject); | ||||
|         } | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.removeSelectable) { | ||||
|             this.removeSelectable(); | ||||
|         } | ||||
|   | ||||
| @@ -86,7 +86,7 @@ export default { | ||||
|             timeOptions: this.domainObject.configuration.timeOptions | ||||
|         }; | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.composition.off('add', this.addItem); | ||||
|         this.composition.off('remove', this.removeItem); | ||||
|         this.composition.off('reorder', this.reorder); | ||||
|   | ||||
| @@ -135,7 +135,7 @@ export default { | ||||
|         this.setViewFromClock(this.openmct.time.clock()); | ||||
|  | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         if (this.unlisten) { | ||||
|             this.unlisten(); | ||||
|         } | ||||
|   | ||||
| @@ -98,7 +98,7 @@ export default { | ||||
|  | ||||
|         this.openmct.editor.on('isEditing', this.setEditState); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.openmct.editor.off('isEditing', this.setEditState); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -48,7 +48,7 @@ export default { | ||||
|     mounted() { | ||||
|         this.openmct.editor.on('isEditing', this.setEditState); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.openmct.editor.off('isEditing', this.setEditState); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -123,7 +123,7 @@ export default { | ||||
|     mounted() { | ||||
|         this.openmct.editor.on('isEditing', this.setEditState); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.openmct.editor.off('isEditing', this.setEditState); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -204,7 +204,7 @@ export default { | ||||
|             this.showOrHideAvailableActions(); | ||||
|         }); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.active = false; | ||||
|         if (this.unlisten) { | ||||
|             this.unlisten(); | ||||
|   | ||||
| @@ -141,7 +141,7 @@ a { | ||||
|     } | ||||
| } | ||||
|  | ||||
| body, html { | ||||
| body, body > div, html { | ||||
|     height: 100%; | ||||
|     width: 100%; | ||||
| } | ||||
|   | ||||
| @@ -127,7 +127,7 @@ export default { | ||||
|         this.openmct.editor.on('isEditing', this.setEditState); | ||||
|         this.initialize(); | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.openmct.editor.off('isEditing', this.setEditState); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -178,7 +178,7 @@ export default { | ||||
|             this.soViewResizeObserver.observe(this.$refs.soView); | ||||
|         } | ||||
|     }, | ||||
|     beforeDestroy() { | ||||
|     beforeUnmount() { | ||||
|         this.removeStatusListener(); | ||||
|  | ||||
|         if (this.actionCollection) { | ||||
|   | ||||
| @@ -74,7 +74,7 @@ export default { | ||||
|         this.status = this.openmct.status.get(this.domainObject.identifier); | ||||
|         this.previewAction = new PreviewAction(this.openmct); | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         this.removeStatusListener(); | ||||
|     }, | ||||
|     methods: { | ||||
|   | ||||
| @@ -64,7 +64,8 @@ export default { | ||||
|     }, | ||||
|     data() { | ||||
|         return { | ||||
|             domainObject: this.defaultObject | ||||
|             domainObject: this.defaultObject, | ||||
|             viewKey: undefined | ||||
|         }; | ||||
|     }, | ||||
|     computed: { | ||||
| @@ -89,7 +90,7 @@ export default { | ||||
|             return this.domainObject && ('is-object-type-' + this.domainObject.type); | ||||
|         } | ||||
|     }, | ||||
|     destroyed() { | ||||
|     unmounted() { | ||||
|         this.clear(); | ||||
|         if (this.releaseEditModeHandler) { | ||||
|             this.releaseEditModeHandler(); | ||||
|   | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user