Compare commits

...

13 Commits

127 changed files with 218 additions and 201 deletions

View File

@ -64,6 +64,7 @@
</style> </style>
</head> </head>
<body> <body>
<div></div>
</body> </body>
<script> <script>
const THIRTY_SECONDS = 30 * 1000; const THIRTY_SECONDS = 30 * 1000;
@ -75,7 +76,8 @@
const TWO_HOURS = ONE_HOUR * 2; const TWO_HOURS = ONE_HOUR * 2;
const ONE_DAY = ONE_HOUR * 24; 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.Generator());
openmct.install(openmct.plugins.example.EventGeneratorPlugin()); openmct.install(openmct.plugins.example.EventGeneratorPlugin());

View File

@ -59,10 +59,11 @@
"style-loader": "^3.3.1", "style-loader": "^3.3.1",
"typescript": "4.9.3", "typescript": "4.9.3",
"uuid": "9.0.0", "uuid": "9.0.0",
"vue": "2.6.14", "vue": "^3.1.0",
"@vue/compat": "^3.1.0",
"vue-eslint-parser": "9.1.0", "vue-eslint-parser": "9.1.0",
"vue-loader": "15.9.8", "vue-loader": "^16.0.0",
"vue-template-compiler": "2.6.14", "@vue/compiler-sfc": "^3.1.0",
"webpack": "5.74.0", "webpack": "5.74.0",
"webpack-cli": "5.0.0", "webpack-cli": "5.0.0",
"webpack-dev-server": "4.11.1", "webpack-dev-server": "4.11.1",

View File

@ -328,7 +328,7 @@ define([
* @param {HTMLElement} [domElement] the DOM element in which to run * @param {HTMLElement} [domElement] the DOM element in which to run
* MCT; if undefined, MCT will be run in the body of the document * 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) { if (this.types.get('layout') === undefined) {
this.install(this.plugins.DisplayLayout({ this.install(this.plugins.DisplayLayout({
showAsView: ['summary-widget'] showAsView: ['summary-widget']
@ -349,7 +349,7 @@ define([
*/ */
if (!isHeadlessMode) { if (!isHeadlessMode) {
const appLayout = new Vue({ const appLayout = Vue.createApp({
components: { components: {
'Layout': Layout.default 'Layout': Layout.default
}, },
@ -358,9 +358,8 @@ define([
}, },
template: '<Layout ref="layout"></Layout>' template: '<Layout ref="layout"></Layout>'
}); });
domElement.appendChild(appLayout.$mount().$el); appLayout.mount(domElement);
this.layout = appLayout._instance.refs.layout;
this.layout = appLayout.$refs.layout;
Browse(this); Browse(this);
} }

View File

@ -109,7 +109,7 @@ export default {
this.formControl.show(this.$refs.rowElement, this.row, this.onChange); this.formControl.show(this.$refs.rowElement, this.row, this.onChange);
}, },
destroyed() { unmounted() {
const destroy = this.formControl.destroy; const destroy = this.formControl.destroy;
if (destroy) { if (destroy) {
destroy(); destroy();

View File

@ -173,7 +173,7 @@ export default {
this.options = this.model.options; this.options = this.model.options;
} }
}, },
destroyed() { unmounted() {
document.body.removeEventListener('click', this.handleOutsideClick); document.body.removeEventListener('click', this.handleOutsideClick);
}, },
methods: { methods: {

View File

@ -9,11 +9,9 @@
> >
<template <template
v-for="(actionGroups, index) in options.actions" v-for="(actionGroups, index) in options.actions"
>
<div
:key="index" :key="index"
role="group"
> >
<div role="group">
<li <li
v-for="action in actionGroups" v-for="action in actionGroups"
:key="action.name" :key="action.name"

View File

@ -10,11 +10,9 @@
> >
<template <template
v-for="(actionGroups, index) in options.actions" v-for="(actionGroups, index) in options.actions"
>
<div
:key="index" :key="index"
role="group"
> >
<div role="group">
<li <li
v-for="action in actionGroups" v-for="action in actionGroups"
:key="action.name" :key="action.name"

View File

@ -147,7 +147,7 @@ export default {
this.setUnit(); this.setUnit();
} }
}, },
destroyed() { unmounted() {
this.openmct.time.off('timeSystem', this.updateTimeSystem); this.openmct.time.off('timeSystem', this.updateTimeSystem);
this.telemetryCollection.off('add', this.setLatestValues); this.telemetryCollection.off('add', this.setLatestValues);
this.telemetryCollection.off('clear', this.resetValues); this.telemetryCollection.off('clear', this.resetValues);

View File

@ -89,7 +89,7 @@ export default {
this.composition.on('reorder', this.reorder); this.composition.on('reorder', this.reorder);
this.composition.load(); this.composition.load();
}, },
destroyed() { unmounted() {
this.composition.off('add', this.addItem); this.composition.off('add', this.addItem);
this.composition.off('remove', this.removeItem); this.composition.off('remove', this.removeItem);
this.composition.off('reorder', this.reorder); this.composition.off('reorder', this.reorder);

View File

@ -33,11 +33,9 @@
<tbody> <tbody>
<template <template
v-for="ladTable in ladTableObjects" v-for="ladTable in ladTableObjects"
>
<tr
:key="ladTable.key" :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"> <td colspan="10">
{{ ladTable.domainObject.name }} {{ ladTable.domainObject.name }}
</td> </td>
@ -104,7 +102,7 @@ export default {
this.composition.on('reorder', this.reorderLadTables); this.composition.on('reorder', this.reorderLadTables);
this.composition.load(); this.composition.load();
}, },
destroyed() { unmounted() {
this.composition.off('add', this.addLadTable); this.composition.off('add', this.addLadTable);
this.composition.off('remove', this.removeLadTable); this.composition.off('remove', this.removeLadTable);
this.composition.off('reorder', this.reorderLadTables); this.composition.off('reorder', this.reorderLadTables);

View File

@ -93,7 +93,7 @@ define([
rowCount: 'reflow' rowCount: 'reflow'
}, },
template: autoflowTemplate, template: autoflowTemplate,
destroyed: function () { unmounted: function () {
controller.destroy(); controller.destroy();
if (interval) { if (interval) {

View File

@ -84,7 +84,7 @@ export default {
}); });
this.registerListeners(); this.registerListeners();
}, },
beforeDestroy() { beforeUnmount() {
if (this.plotResizeObserver) { if (this.plotResizeObserver) {
this.plotResizeObserver.unobserve(this.$refs.plotWrapper); this.plotResizeObserver.unobserve(this.$refs.plotWrapper);
clearTimeout(this.resizeTimer); clearTimeout(this.resizeTimer);

View File

@ -71,7 +71,7 @@ export default {
this.unobserveInterpolation = this.openmct.objects.observe(this.domainObject, 'configuration.useInterpolation', this.refreshData); this.unobserveInterpolation = this.openmct.objects.observe(this.domainObject, 'configuration.useInterpolation', this.refreshData);
this.unobserveBar = this.openmct.objects.observe(this.domainObject, 'configuration.useBar', this.refreshData); this.unobserveBar = this.openmct.objects.observe(this.domainObject, 'configuration.useBar', this.refreshData);
}, },
beforeDestroy() { beforeUnmount() {
this.stopFollowingTimeContext(); this.stopFollowingTimeContext();
this.removeAllSubscriptions(); this.removeAllSubscriptions();

View File

@ -209,7 +209,7 @@ export default {
this.registerListeners(); this.registerListeners();
this.composition.load(); this.composition.load();
}, },
beforeDestroy() { beforeUnmount() {
this.openmct.editor.off('isEditing', this.setEditState); this.openmct.editor.off('isEditing', this.setEditState);
this.stopListening(); this.stopListening();
}, },

View File

@ -115,7 +115,7 @@ export default {
this.initColorAndName(); this.initColorAndName();
this.removeBarStylesListener = this.openmct.objects.observe(this.domainObject, `configuration.barStyles.series["${this.key}"]`, this.initColorAndName); this.removeBarStylesListener = this.openmct.objects.observe(this.domainObject, `configuration.barStyles.series["${this.key}"]`, this.initColorAndName);
}, },
beforeDestroy() { beforeUnmount() {
if (this.removeBarStylesListener) { if (this.removeBarStylesListener) {
this.removeBarStylesListener(); this.removeBarStylesListener();
} }

View File

@ -69,7 +69,7 @@ export default {
this.unobserve = this.openmct.objects.observe(this.domainObject, 'configuration.axes', this.reloadTelemetry); this.unobserve = this.openmct.objects.observe(this.domainObject, 'configuration.axes', this.reloadTelemetry);
this.unobserveUnderlayRanges = this.openmct.objects.observe(this.domainObject, 'configuration.ranges', this.reloadTelemetry); this.unobserveUnderlayRanges = this.openmct.objects.observe(this.domainObject, 'configuration.ranges', this.reloadTelemetry);
}, },
beforeDestroy() { beforeUnmount() {
this.stopFollowingTimeContext(); this.stopFollowingTimeContext();
if (!this.composition) { if (!this.composition) {

View File

@ -91,7 +91,7 @@ export default {
this.$refs.plot.on('plotly_relayout', this.zoom); this.$refs.plot.on('plotly_relayout', this.zoom);
}, },
beforeDestroy() { beforeUnmount() {
if (this.$refs.plot && this.$refs.plot.off) { if (this.$refs.plot && this.$refs.plot.off) {
this.$refs.plot.off('plotly_relayout', this.zoom); this.$refs.plot.off('plotly_relayout', this.zoom);
} }

View File

@ -52,7 +52,7 @@ export default {
mounted() { mounted() {
this.openmct.editor.on('isEditing', this.setEditState); this.openmct.editor.on('isEditing', this.setEditState);
}, },
beforeDestroy() { beforeUnmount() {
this.openmct.editor.off('isEditing', this.setEditState); this.openmct.editor.off('isEditing', this.setEditState);
}, },
methods: { methods: {

View File

@ -70,7 +70,7 @@ export default {
this.registerListeners(); this.registerListeners();
this.composition.load(); this.composition.load();
}, },
beforeDestroy() { beforeUnmount() {
this.stopListening(); this.stopListening();
}, },
methods: { methods: {

View File

@ -101,7 +101,7 @@ export default {
this.registerListeners(); this.registerListeners();
this.composition.load(); this.composition.load();
}, },
beforeDestroy() { beforeUnmount() {
this.stopListening(); this.stopListening();
}, },
methods: { methods: {

View File

@ -85,7 +85,7 @@ export default {
mounted() { mounted() {
this.unlisten = ticker.listen(this.tick); this.unlisten = ticker.listen(this.tick);
}, },
beforeDestroy() { beforeUnmount() {
if (this.unlisten) { if (this.unlisten) {
this.unlisten(); this.unlisten();
} }

View File

@ -48,7 +48,7 @@ export default {
mounted() { mounted() {
this.unlisten = ticker.listen(this.tick); this.unlisten = ticker.listen(this.tick);
}, },
beforeDestroy() { beforeUnmount() {
if (this.unlisten) { if (this.unlisten) {
this.unlisten(); this.unlisten();
} }

View File

@ -295,7 +295,7 @@ export default {
return false; return false;
} }
}, },
destroyed() { unmounted() {
this.destroy(); this.destroy();
}, },
mounted() { mounted() {

View File

@ -128,7 +128,7 @@ export default {
deep: true deep: true
} }
}, },
destroyed() { unmounted() {
this.composition.off('add', this.addTelemetryObject); this.composition.off('add', this.addTelemetryObject);
this.composition.off('remove', this.removeTelemetryObject); this.composition.off('remove', this.removeTelemetryObject);
if (this.conditionManager) { if (this.conditionManager) {

View File

@ -180,7 +180,7 @@ export default {
deep: true deep: true
} }
}, },
beforeDestroy() { beforeUnmount() {
this.resetApplied(); this.resetApplied();
}, },
mounted() { mounted() {

View File

@ -253,7 +253,7 @@ export default {
return this.styleableFontItems.length && this.allowEditing; return this.styleableFontItems.length && this.allowEditing;
} }
}, },
destroyed() { unmounted() {
this.removeListeners(); this.removeListeners();
this.openmct.editor.off('isEditing', this.setEditState); this.openmct.editor.off('isEditing', this.setEditState);
this.stylesManager.off('styleSelected', this.applyStyleToSelection); this.stylesManager.off('styleSelected', this.applyStyleToSelection);

View File

@ -75,7 +75,7 @@ export default {
this.listenToConditionSetChanges(); this.listenToConditionSetChanges();
} }
}, },
beforeDestroy() { beforeUnmount() {
this.conditionSetIdentifier = null; this.conditionSetIdentifier = null;
if (this.unlisten) { if (this.unlisten) {

View File

@ -66,7 +66,7 @@ export default {
this.openmct.selection.on('change', this.handleSelection); this.openmct.selection.on('change', this.handleSelection);
this.handleSelection(this.openmct.selection.get()); this.handleSelection(this.openmct.selection.get());
}, },
destroyed() { unmounted() {
this.openmct.editor.off('isEditing', this.toggleEdit); this.openmct.editor.off('isEditing', this.toggleEdit);
this.openmct.selection.off('change', this.handleSelection); this.openmct.selection.off('change', this.handleSelection);
}, },

View File

@ -113,7 +113,7 @@ export default {
this.removeSelectable = this.openmct.selection.selectable( this.removeSelectable = this.openmct.selection.selectable(
this.$el, this.context, this.initSelect); this.$el, this.context, this.initSelect);
}, },
destroyed() { unmounted() {
if (this.removeSelectable) { if (this.removeSelectable) {
this.removeSelectable(); this.removeSelectable();
} }

View File

@ -225,7 +225,7 @@ export default {
this.watchDisplayResize(); this.watchDisplayResize();
}, },
destroyed: function () { unmounted: function () {
this.openmct.selection.off('change', this.setSelection); this.openmct.selection.off('change', this.setSelection);
this.composition.off('add', this.addChild); this.composition.off('add', this.addChild);
this.composition.off('remove', this.removeChild); this.composition.off('remove', this.removeChild);

View File

@ -113,7 +113,7 @@ export default {
this.removeSelectable = this.openmct.selection.selectable( this.removeSelectable = this.openmct.selection.selectable(
this.$el, this.context, this.initSelect); this.$el, this.context, this.initSelect);
}, },
destroyed() { unmounted() {
if (this.removeSelectable) { if (this.removeSelectable) {
this.removeSelectable(); this.removeSelectable();
} }

View File

@ -120,7 +120,7 @@ export default {
this.removeSelectable = this.openmct.selection.selectable( this.removeSelectable = this.openmct.selection.selectable(
this.$el, this.context, this.initSelect); this.$el, this.context, this.initSelect);
}, },
destroyed() { unmounted() {
if (this.removeSelectable) { if (this.removeSelectable) {
this.removeSelectable(); this.removeSelectable();
} }

View File

@ -269,7 +269,7 @@ export default {
}; };
this.removeSelectable = this.openmct.selection.selectable(this.$el, this.context, this.initSelect); this.removeSelectable = this.openmct.selection.selectable(this.$el, this.context, this.initSelect);
}, },
destroyed() { unmounted() {
if (this.removeSelectable) { if (this.removeSelectable) {
this.removeSelectable(); this.removeSelectable();
} }

View File

@ -138,7 +138,7 @@ export default {
.then(this.setObject); .then(this.setObject);
} }
}, },
beforeDestroy() { beforeUnmount() {
if (this.removeSelectable) { if (this.removeSelectable) {
this.removeSelectable(); this.removeSelectable();
} }

View File

@ -225,7 +225,7 @@ export default {
this.status = this.openmct.status.get(this.item.identifier); this.status = this.openmct.status.get(this.item.identifier);
this.removeStatusListener = this.openmct.status.observe(this.item.identifier, this.setStatus); this.removeStatusListener = this.openmct.status.observe(this.item.identifier, this.setStatus);
}, },
beforeDestroy() { beforeUnmount() {
this.removeStatusListener(); this.removeStatusListener();
if (this.removeSelectable) { if (this.removeSelectable) {

View File

@ -122,7 +122,7 @@ export default {
this.removeSelectable = this.openmct.selection.selectable( this.removeSelectable = this.openmct.selection.selectable(
this.$el, this.context, this.initSelect); this.$el, this.context, this.initSelect);
}, },
destroyed() { unmounted() {
if (this.removeSelectable) { if (this.removeSelectable) {
this.removeSelectable(); this.removeSelectable();
} }

View File

@ -38,7 +38,7 @@ export default {
this.objectStyle = this.getObjectStyleForItem(this.parentDomainObject.configuration.objectStyles); this.objectStyle = this.getObjectStyleForItem(this.parentDomainObject.configuration.objectStyles);
this.initObjectStyles(); this.initObjectStyles();
}, },
beforeDestroy() { beforeUnmount() {
if (this.stopListeningObjectStyles) { if (this.stopListeningObjectStyles) {
this.stopListeningObjectStyles(); this.stopListeningObjectStyles();
} }

View File

@ -47,7 +47,7 @@ export default {
this.unsubscribe = this.openmct.faults this.unsubscribe = this.openmct.faults
.subscribe(this.domainObject, this.updateFault); .subscribe(this.domainObject, this.updateFault);
}, },
beforeDestroy() { beforeUnmount() {
if (this.unsubscribe) { if (this.unsubscribe) {
this.unsubscribe(); this.unsubscribe();
} }

View File

@ -89,7 +89,7 @@ export default {
mounted() { mounted() {
this.openmct.editor.on('isEditing', this.toggleIsEditing); this.openmct.editor.on('isEditing', this.toggleIsEditing);
}, },
beforeDestroy() { beforeUnmount() {
this.openmct.editor.off('isEditing', this.toggleIsEditing); this.openmct.editor.off('isEditing', this.toggleIsEditing);
}, },
methods: { methods: {

View File

@ -121,7 +121,7 @@ export default {
this.objectCssClass = type.definition.cssClass; this.objectCssClass = type.definition.cssClass;
this.openmct.editor.on('isEditing', this.toggleIsEditing); this.openmct.editor.on('isEditing', this.toggleIsEditing);
}, },
beforeDestroy() { beforeUnmount() {
this.openmct.editor.off('isEditing', this.toggleIsEditing); this.openmct.editor.off('isEditing', this.toggleIsEditing);
}, },
methods: { methods: {

View File

@ -91,7 +91,7 @@ export default {
this.unobserve = this.openmct.objects.observe(this.providedObject, 'configuration.filters', this.updatePersistedFilters); this.unobserve = this.openmct.objects.observe(this.providedObject, 'configuration.filters', this.updatePersistedFilters);
this.unobserveGlobalFilters = this.openmct.objects.observe(this.providedObject, 'configuration.globalFilters', this.updateGlobalFilters); this.unobserveGlobalFilters = this.openmct.objects.observe(this.providedObject, 'configuration.globalFilters', this.updateGlobalFilters);
}, },
beforeDestroy() { beforeUnmount() {
this.composition.off('add', this.addChildren); this.composition.off('add', this.addChildren);
this.composition.off('remove', this.removeChildren); this.composition.off('remove', this.removeChildren);
this.unobserve(); this.unobserve();

View File

@ -45,9 +45,9 @@
<div class="c-fl-container__frames-holder"> <div class="c-fl-container__frames-holder">
<template <template
v-for="(frame, i) in frames" v-for="(frame, i) in frames"
:key="frame.id"
> >
<frame-component <frame-component
:key="frame.id"
class="c-fl-container__frame" class="c-fl-container__frame"
:frame="frame" :frame="frame"
:index="i" :index="i"
@ -57,7 +57,6 @@
/> />
<drop-hint <drop-hint
:key="'hint-' + i"
class="c-fl-frame__drop-hint" class="c-fl-frame__drop-hint"
:index="i" :index="i"
:allow-drop="allowDrop" :allow-drop="allowDrop"
@ -66,7 +65,6 @@
<resize-handle <resize-handle
v-if="(i !== frames.length - 1)" v-if="(i !== frames.length - 1)"
:key="'handle-' + i"
:index="i" :index="i"
:orientation="rowsLayout ? 'horizontal' : 'vertical'" :orientation="rowsLayout ? 'horizontal' : 'vertical'"
:is-editing="isEditing" :is-editing="isEditing"
@ -134,7 +132,7 @@ export default {
this.unsubscribeSelection = this.openmct.selection.selectable(this.$el, context, false); this.unsubscribeSelection = this.openmct.selection.selectable(this.$el, context, false);
}, },
beforeDestroy() { beforeUnmount() {
this.unsubscribeSelection(); this.unsubscribeSelection();
}, },
methods: { methods: {

View File

@ -56,7 +56,7 @@ export default {
document.addEventListener('dragend', this.dragend); document.addEventListener('dragend', this.dragend);
document.addEventListener('drop', this.dragend); document.addEventListener('drop', this.dragend);
}, },
destroyed() { unmounted() {
document.removeEventListener('dragstart', this.dragstart); document.removeEventListener('dragstart', this.dragstart);
document.removeEventListener('dragend', this.dragend); document.removeEventListener('dragend', this.dragend);
document.removeEventListener('drop', this.dragend); document.removeEventListener('drop', this.dragend);

View File

@ -40,10 +40,12 @@
'c-fl--rows': rowsLayout === true '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 <drop-hint
v-if="index === 0 && containers.length > 1" v-if="index === 0 && containers.length > 1"
:key="`hint-top-${container.id}`"
class="c-fl-frame__drop-hint" class="c-fl-frame__drop-hint"
:index="-1" :index="-1"
:allow-drop="allowContainerDrop" :allow-drop="allowContainerDrop"
@ -51,7 +53,6 @@
/> />
<container-component <container-component
:key="`component-${container.id}`"
class="c-fl__container" class="c-fl__container"
:index="index" :index="index"
:container="container" :container="container"
@ -66,7 +67,6 @@
<resize-handle <resize-handle
v-if="index !== (containers.length - 1)" v-if="index !== (containers.length - 1)"
:key="`handle-${container.id}`"
:index="index" :index="index"
:orientation="rowsLayout ? 'vertical' : 'horizontal'" :orientation="rowsLayout ? 'vertical' : 'horizontal'"
:is-editing="isEditing" :is-editing="isEditing"
@ -77,7 +77,6 @@
<drop-hint <drop-hint
v-if="containers.length > 1" v-if="containers.length > 1"
:key="`hint-bottom-${container.id}`"
class="c-fl-frame__drop-hint" class="c-fl-frame__drop-hint"
:index="index" :index="index"
:allow-drop="allowContainerDrop" :allow-drop="allowContainerDrop"
@ -180,7 +179,7 @@ export default {
this.composition.on('add', this.addFrame); this.composition.on('add', this.addFrame);
this.composition.load(); this.composition.load();
}, },
beforeDestroy() { beforeUnmount() {
this.composition.off('remove', this.removeChildObject); this.composition.off('remove', this.removeChildObject);
this.composition.off('add', this.addFrame); this.composition.off('add', this.addFrame);
}, },

View File

@ -113,7 +113,7 @@ export default {
this.dragGhost = document.getElementById('js-fl-drag-ghost'); this.dragGhost = document.getElementById('js-fl-drag-ghost');
}, },
beforeDestroy() { beforeUnmount() {
if (this.domainObjectPromise) { if (this.domainObjectPromise) {
this.domainObjectPromise.then(() => { this.domainObjectPromise.then(() => {
if (this?.domainObject?.isMutable) { if (this?.domainObject?.isMutable) {

View File

@ -56,7 +56,7 @@ export default {
document.addEventListener('dragend', this.unsetDragging); document.addEventListener('dragend', this.unsetDragging);
document.addEventListener('drop', this.unsetDragging); document.addEventListener('drop', this.unsetDragging);
}, },
destroyed() { unmounted() {
document.removeEventListener('dragstart', this.setDragging); document.removeEventListener('dragstart', this.setDragging);
document.removeEventListener('dragend', this.unsetDragging); document.removeEventListener('dragend', this.unsetDragging);
document.removeEventListener('drop', this.unsetDragging); document.removeEventListener('drop', this.unsetDragging);

View File

@ -23,7 +23,7 @@ export default {
this.composition.on('remove', this.remove); this.composition.on('remove', this.remove);
this.composition.load(); this.composition.load();
}, },
destroyed() { unmounted() {
if (!this.composition) { if (!this.composition) {
return; return;
} }

View File

@ -27,7 +27,7 @@ export default {
this.status = this.openmct.status.get(identifier); this.status = this.openmct.status.get(identifier);
this.removeStatusListener = this.openmct.status.observe(identifier, this.setStatus); this.removeStatusListener = this.openmct.status.observe(identifier, this.setStatus);
}, },
destroyed() { unmounted() {
this.removeStatusListener(); this.removeStatusListener();
} }
}; };

View File

@ -536,7 +536,7 @@ export default {
this.openmct.time.on('bounds', this.refreshData); this.openmct.time.on('bounds', this.refreshData);
this.openmct.time.on('timeSystem', this.setTimeSystem); this.openmct.time.on('timeSystem', this.setTimeSystem);
}, },
destroyed() { unmounted() {
this.composition.off('add', this.addedToComposition); this.composition.off('add', this.addedToComposition);
this.composition.off('remove', this.removeTelemetryObject); this.composition.off('remove', this.removeTelemetryObject);

View File

@ -159,7 +159,7 @@ export default {
document.addEventListener('keyup', this.handleKeyUp); document.addEventListener('keyup', this.handleKeyUp);
this.clearWheelZoom = _.debounce(this.clearWheelZoom, 600); this.clearWheelZoom = _.debounce(this.clearWheelZoom, 600);
}, },
beforeDestroy() { beforeUnmount() {
document.removeEventListener('keydown', this.handleKeyDown); document.removeEventListener('keydown', this.handleKeyDown);
document.removeEventListener('keyup', this.handleKeyUp); document.removeEventListener('keyup', this.handleKeyUp);
}, },

View File

@ -93,7 +93,7 @@ export default {
this.unlisten = this.openmct.objects.observe(this.domainObject, '*', this.observeForChanges); this.unlisten = this.openmct.objects.observe(this.domainObject, '*', this.observeForChanges);
}, },
beforeDestroy() { beforeUnmount() {
if (this.imageryStripResizeObserver) { if (this.imageryStripResizeObserver) {
this.imageryStripResizeObserver.disconnect(); this.imageryStripResizeObserver.disconnect();
} }

View File

@ -175,7 +175,7 @@
:selected="focusedImageIndex === index && isPaused" :selected="focusedImageIndex === index && isPaused"
:real-time="!isFixed" :real-time="!isFixed"
:viewable-area="focusedImageIndex === index ? viewableArea : null" :viewable-area="focusedImageIndex === index ? viewableArea : null"
@click.native="thumbnailClicked(index)" @click="thumbnailClicked(index)"
/> />
</div> </div>
@ -643,7 +643,7 @@ export default {
this.listenTo(this.focusedImageWrapper, 'wheel', this.wheelZoom, this); this.listenTo(this.focusedImageWrapper, 'wheel', this.wheelZoom, this);
this.loadVisibleLayers(); this.loadVisibleLayers();
}, },
beforeDestroy() { beforeUnmount() {
this.persistVisibleLayers(); this.persistVisibleLayers();
this.stopFollowingTimeContext(); this.stopFollowingTimeContext();

View File

@ -46,7 +46,7 @@ export default {
mounted() { mounted() {
document.addEventListener('click', this.hideMenu); document.addEventListener('click', this.hideMenu);
}, },
destroyed() { unmounted() {
document.removeEventListener('click', this.hideMenu); document.removeEventListener('click', this.hideMenu);
}, },
methods: { methods: {

View File

@ -50,7 +50,7 @@ export default {
this.telemetryCollection.on('clear', this.dataCleared); this.telemetryCollection.on('clear', this.dataCleared);
this.telemetryCollection.load(); this.telemetryCollection.load();
}, },
beforeDestroy() { beforeUnmount() {
if (this.unsubscribe) { if (this.unsubscribe) {
this.unsubscribe(); this.unsubscribe();
delete this.unsubscribe; delete this.unsubscribe;

View File

@ -302,7 +302,7 @@ export default {
this.filterAndSortEntries(); this.filterAndSortEntries();
this.unobserveEntries = this.openmct.objects.observe(this.domainObject, '*', this.filterAndSortEntries); this.unobserveEntries = this.openmct.objects.observe(this.domainObject, '*', this.filterAndSortEntries);
}, },
beforeDestroy() { beforeUnmount() {
if (this.unlisten) { if (this.unlisten) {
this.unlisten(); this.unlisten();
} }

View File

@ -90,7 +90,7 @@ export default {
}; };
} }
}, },
beforeDestroy() { beforeUnmount() {
this.openmct.user.status.off('statusChange', this.setStatus); this.openmct.user.status.off('statusChange', this.setStatus);
this.openmct.user.status.off('pollQuestionChange', this.setPollQuestion); this.openmct.user.status.off('pollQuestionChange', this.setPollQuestion);
}, },

View File

@ -117,7 +117,7 @@ export default {
this.fetchStatusSummary(); this.fetchStatusSummary();
this.openmct.user.status.on('statusChange', 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('statusChange', this.fetchStatusSummary);
this.openmct.user.status.off('pollQuestionChange', this.setPollQuestion); this.openmct.user.status.off('pollQuestionChange', this.setPollQuestion);
}, },

View File

@ -27,7 +27,7 @@
> >
<template v-if="viewBounds && !options.compact"> <template v-if="viewBounds && !options.compact">
<swim-lane> <swim-lane>
<template slot="label">{{ timeSystem.name }}</template> <slot name="label">{{ timeSystem.name }}</slot>
<timeline-axis <timeline-axis
slot="object" slot="object"
:bounds="viewBounds" :bounds="viewBounds"
@ -107,7 +107,7 @@ export default {
this.removeStatusListener = this.openmct.status.observe(this.domainObject.identifier, this.setStatus); this.removeStatusListener = this.openmct.status.observe(this.domainObject.identifier, this.setStatus);
this.status = this.openmct.status.get(this.domainObject.identifier); this.status = this.openmct.status.get(this.domainObject.identifier);
}, },
beforeDestroy() { beforeUnmount() {
clearInterval(this.resizeTimer); clearInterval(this.resizeTimer);
this.stopFollowingTimeContext(); this.stopFollowingTimeContext();
if (this.unlisten) { if (this.unlisten) {

View File

@ -65,7 +65,7 @@ export default {
this.openmct.selection.on('change', this.updateSelection); this.openmct.selection.on('change', this.updateSelection);
this.openmct.time.on('timeSystem', this.setFormatters); this.openmct.time.on('timeSystem', this.setFormatters);
}, },
beforeDestroy() { beforeUnmount() {
this.openmct.selection.off('change', this.updateSelection); this.openmct.selection.off('change', this.updateSelection);
this.openmct.time.off('timeSystem', this.setFormatters); this.openmct.time.off('timeSystem', this.setFormatters);
}, },

View File

@ -365,7 +365,7 @@ export default {
this.loaded = true; this.loaded = true;
}, },
beforeDestroy() { beforeUnmount() {
document.removeEventListener('keydown', this.handleKeyDown); document.removeEventListener('keydown', this.handleKeyDown);
document.removeEventListener('keyup', this.handleKeyUp); document.removeEventListener('keyup', this.handleKeyUp);
this.destroy(); this.destroy();

View File

@ -131,7 +131,7 @@ export default {
this.listenTo(this.axis, 'change:key', this.updateTicksForceRegeneration, this); this.listenTo(this.axis, 'change:key', this.updateTicksForceRegeneration, this);
this.updateTicks(); this.updateTicks();
}, },
beforeDestroy() { beforeUnmount() {
this.stopListening(); this.stopListening();
}, },
methods: { methods: {

View File

@ -81,7 +81,7 @@ export default {
eventHelpers.extend(this); eventHelpers.extend(this);
this.imageExporter = new ImageExporter(this.openmct); this.imageExporter = new ImageExporter(this.openmct);
}, },
beforeDestroy() { beforeUnmount() {
this.destroy(); this.destroy();
}, },
methods: { methods: {

View File

@ -89,7 +89,7 @@ export default {
this.openmct.time.on('timeSystem', this.syncXAxisToTimeSystem); this.openmct.time.on('timeSystem', this.syncXAxisToTimeSystem);
this.listenTo(this.xAxis, 'change', this.setUpXAxisOptions); this.listenTo(this.xAxis, 'change', this.setUpXAxisOptions);
}, },
beforeDestroy() { beforeUnmount() {
this.openmct.time.off('timeSystem', this.syncXAxisToTimeSystem); this.openmct.time.off('timeSystem', this.syncXAxisToTimeSystem);
}, },
methods: { methods: {

View File

@ -117,7 +117,7 @@ export default {
this.config.series.forEach(this.onSeriesAdd, this); this.config.series.forEach(this.onSeriesAdd, this);
this.$emit('chartLoaded'); this.$emit('chartLoaded');
}, },
beforeDestroy() { beforeUnmount() {
this.destroy(); this.destroy();
}, },
methods: { methods: {

View File

@ -52,7 +52,7 @@ export default {
mounted() { mounted() {
this.openmct.editor.on('isEditing', this.setEditState); this.openmct.editor.on('isEditing', this.setEditState);
}, },
beforeDestroy() { beforeUnmount() {
this.openmct.editor.off('isEditing', this.setEditState); this.openmct.editor.off('isEditing', this.setEditState);
}, },
methods: { methods: {

View File

@ -192,7 +192,7 @@ export default {
this.loaded = true; this.loaded = true;
}, },
beforeDestroy() { beforeUnmount() {
this.stopListening(); this.stopListening();
}, },
methods: { methods: {

View File

@ -94,7 +94,7 @@ export default {
this.registerListeners(); this.registerListeners();
this.loaded = true; this.loaded = true;
}, },
beforeDestroy() { beforeUnmount() {
this.stopListening(); this.stopListening();
}, },
methods: { methods: {

View File

@ -163,7 +163,7 @@ export default {
this.status = this.openmct.status.get(this.series.domainObject.identifier); this.status = this.openmct.status.get(this.series.domainObject.identifier);
this.removeStatusListener = this.openmct.status.observe(this.series.domainObject.identifier, this.setStatus); this.removeStatusListener = this.openmct.status.observe(this.series.domainObject.identifier, this.setStatus);
}, },
beforeDestroy() { beforeUnmount() {
if (this.removeStatusListener) { if (this.removeStatusListener) {
this.removeStatusListener(); this.removeStatusListener();
} }

View File

@ -218,7 +218,7 @@ export default {
this.status = this.openmct.status.get(this.series.domainObject.identifier); this.status = this.openmct.status.get(this.series.domainObject.identifier);
this.removeStatusListener = this.openmct.status.observe(this.series.domainObject.identifier, this.setStatus); this.removeStatusListener = this.openmct.status.observe(this.series.domainObject.identifier, this.setStatus);
}, },
beforeDestroy() { beforeUnmount() {
if (this.removeStatusListener) { if (this.removeStatusListener) {
this.removeStatusListener(); this.removeStatusListener();
} }

View File

@ -114,7 +114,7 @@ export default {
}, this); }, this);
this.initialize(); this.initialize();
}, },
beforeDestroy() { beforeUnmount() {
this.stopListening(); this.stopListening();
}, },
methods: { methods: {

View File

@ -151,7 +151,7 @@ export default {
}, this); }, this);
this.initialize(); this.initialize();
}, },
beforeDestroy() { beforeUnmount() {
this.stopListening(); this.stopListening();
}, },
methods: { methods: {

View File

@ -116,7 +116,7 @@ export default {
return Math.max(...Object.values(this.tickWidthMap)); return Math.max(...Object.values(this.tickWidthMap));
} }
}, },
beforeDestroy() { beforeUnmount() {
this.destroy(); this.destroy();
}, },
mounted() { mounted() {

View File

@ -98,7 +98,7 @@ export default {
mounted() { mounted() {
this.updateView(); this.updateView();
}, },
beforeDestroy() { beforeUnmount() {
if (this.removeSelectable) { if (this.removeSelectable) {
this.removeSelectable(); this.removeSelectable();
} }

View File

@ -34,7 +34,7 @@ export default {
this.objectStyles = this.getObjectStyleForItem(this.childObject.configuration); this.objectStyles = this.getObjectStyleForItem(this.childObject.configuration);
this.initObjectStyles(); this.initObjectStyles();
}, },
beforeDestroy() { beforeUnmount() {
if (this.stopListeningStyles) { if (this.stopListeningStyles) {
this.stopListeningStyles(); this.stopListeningStyles();
} }

View File

@ -147,10 +147,10 @@ export default {
document.addEventListener('dragstart', this.dragstart); document.addEventListener('dragstart', this.dragstart);
document.addEventListener('dragend', this.dragend); document.addEventListener('dragend', this.dragend);
}, },
beforeDestroy() { beforeUnmount() {
this.persistCurrentTabIndex(this.currentTabIndex); this.persistCurrentTabIndex(this.currentTabIndex);
}, },
destroyed() { unmounted() {
this.composition.off('add', this.addItem); this.composition.off('add', this.addItem);
this.composition.off('remove', this.removeItem); this.composition.off('remove', this.removeItem);
this.composition.off('reorder', this.onReorder); this.composition.off('reorder', this.onReorder);

View File

@ -28,7 +28,7 @@ export default {
this.pollForRowHeight(); this.pollForRowHeight();
} }
}, },
destroyed() { unmounted() {
this.clearPoll(); this.clearPoll();
}, },
methods: { methods: {

View File

@ -97,7 +97,7 @@ export default {
this.unlisteners.push(compositionCollection.off.bind(compositionCollection, 'remove', this.removeObject)); this.unlisteners.push(compositionCollection.off.bind(compositionCollection, 'remove', this.removeObject));
}); });
}, },
destroyed() { unmounted() {
this.tableConfiguration.destroy(); this.tableConfiguration.destroy();
this.openmct.editor.off('isEditing', this.toggleEdit); this.openmct.editor.off('isEditing', this.toggleEdit);
this.unlisteners.forEach((unlisten) => unlisten()); this.unlisteners.forEach((unlisten) => unlisten());

View File

@ -94,7 +94,7 @@ export default {
this.table.configuration.on('change', this.handleConfigurationChanges); this.table.configuration.on('change', this.handleConfigurationChanges);
this.updateFilters(filters); this.updateFilters(filters);
}, },
destroyed() { unmounted() {
this.table.configuration.off('change', this.handleConfigurationChanges); this.table.configuration.off('change', this.handleConfigurationChanges);
}, },
methods: { methods: {

View File

@ -257,11 +257,11 @@
@change-height="setRowHeight" @change-height="setRowHeight"
/> />
<tr> <tr>
<template v-for="(title, key) in headers"> <template
<th v-for="(title, key) in headers"
:key="key" :key="key"
:style="{ width: configuredColumnWidths[key] + 'px', 'max-width': configuredColumnWidths[key] + 'px'}"
> >
<th :style="{ width: configuredColumnWidths[key] + 'px', 'max-width': configuredColumnWidths[key] + 'px'}">
{{ title }} {{ title }}
</th> </th>
</template> </template>
@ -510,7 +510,7 @@ export default {
this.table.initialize(); this.table.initialize();
}, },
beforeDestroy() { beforeUnmount() {
this.table.off('object-added', this.addObject); this.table.off('object-added', this.addObject);
this.table.off('object-removed', this.removeObject); this.table.off('object-removed', this.removeObject);
this.table.off('historical-rows-processed', this.checkForMarkedRows); this.table.off('historical-rows-processed', this.checkForMarkedRows);

View File

@ -139,7 +139,7 @@ export default {
this.openmct.time.on('timeSystem', this.setTimeSystem); this.openmct.time.on('timeSystem', this.setTimeSystem);
this.openmct.time.on('clock', this.setViewFromClock); this.openmct.time.on('clock', this.setViewFromClock);
}, },
beforeDestroy() { beforeUnmount() {
document.removeEventListener('keydown', this.handleKeyDown); document.removeEventListener('keydown', this.handleKeyDown);
document.removeEventListener('keyup', this.handleKeyUp); document.removeEventListener('keyup', this.handleKeyUp);
}, },

View File

@ -125,7 +125,7 @@ export default {
this.openmct.time.on('timeSystem', this.setTimeSystem); this.openmct.time.on('timeSystem', this.setTimeSystem);
this.setTimeContext(); this.setTimeContext();
}, },
beforeDestroy() { beforeUnmount() {
this.clearAllValidation(); this.clearAllValidation();
this.openmct.time.off('timeSystem', this.setTimeSystem); this.openmct.time.off('timeSystem', this.setTimeSystem);
this.stopFollowingTimeContext(); this.stopFollowingTimeContext();

View File

@ -14,7 +14,7 @@
:bottom="keyString !== undefined" :bottom="keyString !== undefined"
:type="'start'" :type="'start'"
:offset="offsets.start" :offset="offsets.start"
@focus.native="$event.target.select()" @focus="$event.target.select()"
@hide="hideAllTimePopups" @hide="hideAllTimePopups"
@update="timePopUpdate" @update="timePopUpdate"
/> />
@ -54,7 +54,7 @@
:bottom="keyString !== undefined" :bottom="keyString !== undefined"
:type="'end'" :type="'end'"
:offset="offsets.end" :offset="offsets.end"
@focus.native="$event.target.select()" @focus="$event.target.select()"
@hide="hideAllTimePopups" @hide="hideAllTimePopups"
@update="timePopUpdate" @update="timePopUpdate"
/> />
@ -147,7 +147,7 @@ export default {
this.openmct.time.on('timeSystem', this.setTimeSystem); this.openmct.time.on('timeSystem', this.setTimeSystem);
this.setTimeContext(); this.setTimeContext();
}, },
beforeDestroy() { beforeUnmount() {
this.openmct.time.off('timeSystem', this.setTimeSystem); this.openmct.time.off('timeSystem', this.setTimeSystem);
this.stopFollowingTime(); this.stopFollowingTime();
}, },

View File

@ -60,7 +60,7 @@ export default {
this.openmct.time.on('clock', this.setViewFromClock); this.openmct.time.on('clock', this.setViewFromClock);
}, },
destroyed: function () { unmounted: function () {
this.openmct.time.off('clock', this.setViewFromClock); this.openmct.time.off('clock', this.setViewFromClock);
}, },
methods: { methods: {

View File

@ -50,7 +50,7 @@ export default {
this.openmct.time.on('timeSystem', this.setViewFromTimeSystem); this.openmct.time.on('timeSystem', this.setViewFromTimeSystem);
this.openmct.time.on('clock', this.setViewFromClock); this.openmct.time.on('clock', this.setViewFromClock);
}, },
destroyed: function () { unmounted: function () {
this.openmct.time.off('timeSystem', this.setViewFromTimeSystem); this.openmct.time.off('timeSystem', this.setViewFromTimeSystem);
this.openmct.time.on('clock', this.setViewFromClock); this.openmct.time.on('clock', this.setViewFromClock);
}, },

View File

@ -135,7 +135,7 @@ export default {
mounted() { mounted() {
this.initialize(); this.initialize();
}, },
beforeDestroy() { beforeUnmount() {
this.stopFollowingTimeContext(); this.stopFollowingTimeContext();
this.destroyIndependentTime(); this.destroyIndependentTime();
}, },

View File

@ -98,7 +98,7 @@ export default {
this.followTimeConductor(); this.followTimeConductor();
}, },
destroyed: function () { unmounted: function () {
this.stopFollowTimeConductor(); this.stopFollowTimeConductor();
}, },
methods: { methods: {

View File

@ -20,6 +20,7 @@
* at runtime from the About dialog for additional information. * at runtime from the About dialog for additional information.
*****************************************************************************/ *****************************************************************************/
import { markRaw } from 'vue';
import Conductor from './Conductor.vue'; import Conductor from './Conductor.vue';
function isTruthy(a) { function isTruthy(a) {
@ -91,16 +92,17 @@ function throwIfError(configResult) {
} }
function mountComponent(openmct, configuration) { function mountComponent(openmct, configuration) {
openmct.layout.conductorComponent = Object.create({ const conductorApp = {
components: { components: {
Conductor Conductor
}, },
template: "<conductor></conductor>",
provide: { provide: {
openmct: openmct, openmct: openmct,
configuration: configuration configuration: configuration
} },
}); template: "<conductor />"
};
openmct.layout.conductorComponent = markRaw(conductorApp);
} }
export default function (config) { export default function (config) {

View File

@ -110,7 +110,7 @@ export default {
this.setOffset(); this.setOffset();
document.addEventListener('click', this.hide); document.addEventListener('click', this.hide);
}, },
beforeDestroy() { beforeUnmount() {
document.removeEventListener('click', this.hide); document.removeEventListener('click', this.hide);
}, },
methods: { methods: {

View File

@ -83,7 +83,7 @@ export default {
.then(this.setObject); .then(this.setObject);
} }
}, },
beforeDestroy() { beforeUnmount() {
if (this.removeSelectable) { if (this.removeSelectable) {
this.removeSelectable(); this.removeSelectable();
} }

View File

@ -86,7 +86,7 @@ export default {
timeOptions: this.domainObject.configuration.timeOptions timeOptions: this.domainObject.configuration.timeOptions
}; };
}, },
beforeDestroy() { beforeUnmount() {
this.composition.off('add', this.addItem); this.composition.off('add', this.addItem);
this.composition.off('remove', this.removeItem); this.composition.off('remove', this.removeItem);
this.composition.off('reorder', this.reorder); this.composition.off('reorder', this.reorder);

View File

@ -135,7 +135,7 @@ export default {
this.setViewFromClock(this.openmct.time.clock()); this.setViewFromClock(this.openmct.time.clock());
}, },
beforeDestroy() { beforeUnmount() {
if (this.unlisten) { if (this.unlisten) {
this.unlisten(); this.unlisten();
} }

View File

@ -98,7 +98,7 @@ export default {
this.openmct.editor.on('isEditing', this.setEditState); this.openmct.editor.on('isEditing', this.setEditState);
}, },
beforeDestroy() { beforeUnmount() {
this.openmct.editor.off('isEditing', this.setEditState); this.openmct.editor.off('isEditing', this.setEditState);
}, },
methods: { methods: {

View File

@ -48,7 +48,7 @@ export default {
mounted() { mounted() {
this.openmct.editor.on('isEditing', this.setEditState); this.openmct.editor.on('isEditing', this.setEditState);
}, },
beforeDestroy() { beforeUnmount() {
this.openmct.editor.off('isEditing', this.setEditState); this.openmct.editor.off('isEditing', this.setEditState);
}, },
methods: { methods: {

View File

@ -123,7 +123,7 @@ export default {
mounted() { mounted() {
this.openmct.editor.on('isEditing', this.setEditState); this.openmct.editor.on('isEditing', this.setEditState);
}, },
beforeDestroy() { beforeUnmount() {
this.openmct.editor.off('isEditing', this.setEditState); this.openmct.editor.off('isEditing', this.setEditState);
}, },
methods: { methods: {

View File

@ -204,7 +204,7 @@ export default {
this.showOrHideAvailableActions(); this.showOrHideAvailableActions();
}); });
}, },
beforeDestroy() { beforeUnmount() {
this.active = false; this.active = false;
if (this.unlisten) { if (this.unlisten) {
this.unlisten(); this.unlisten();

View File

@ -141,7 +141,7 @@ a {
} }
} }
body, html { body, body > div, html {
height: 100%; height: 100%;
width: 100%; width: 100%;
} }

View File

@ -127,7 +127,7 @@ export default {
this.openmct.editor.on('isEditing', this.setEditState); this.openmct.editor.on('isEditing', this.setEditState);
this.initialize(); this.initialize();
}, },
beforeDestroy() { beforeUnmount() {
this.openmct.editor.off('isEditing', this.setEditState); this.openmct.editor.off('isEditing', this.setEditState);
}, },
methods: { methods: {

View File

@ -178,7 +178,7 @@ export default {
this.soViewResizeObserver.observe(this.$refs.soView); this.soViewResizeObserver.observe(this.$refs.soView);
} }
}, },
beforeDestroy() { beforeUnmount() {
this.removeStatusListener(); this.removeStatusListener();
if (this.actionCollection) { if (this.actionCollection) {

View File

@ -74,7 +74,7 @@ export default {
this.status = this.openmct.status.get(this.domainObject.identifier); this.status = this.openmct.status.get(this.domainObject.identifier);
this.previewAction = new PreviewAction(this.openmct); this.previewAction = new PreviewAction(this.openmct);
}, },
destroyed() { unmounted() {
this.removeStatusListener(); this.removeStatusListener();
}, },
methods: { methods: {

View File

@ -64,7 +64,8 @@ export default {
}, },
data() { data() {
return { return {
domainObject: this.defaultObject domainObject: this.defaultObject,
viewKey: undefined
}; };
}, },
computed: { computed: {
@ -89,7 +90,7 @@ export default {
return this.domainObject && ('is-object-type-' + this.domainObject.type); return this.domainObject && ('is-object-type-' + this.domainObject.type);
} }
}, },
destroyed() { unmounted() {
this.clear(); this.clear();
if (this.releaseEditModeHandler) { if (this.releaseEditModeHandler) {
this.releaseEditModeHandler(); this.releaseEditModeHandler();

Some files were not shown because too many files have changed in this diff Show More