diff --git a/src/plugins/inspectorViews/elements/ElementsPool.vue b/src/plugins/inspectorViews/elements/ElementsPool.vue index b465c9cbf0..b6b4077827 100644 --- a/src/plugins/inspectorViews/elements/ElementsPool.vue +++ b/src/plugins/inspectorViews/elements/ElementsPool.vue @@ -44,12 +44,13 @@ @drop-custom="moveTo(index)" >
  • No contained elements
    + diff --git a/src/plugins/timeline/TimelineElementsContent.vue b/src/plugins/timeline/TimelineElementsContent.vue index 4c38750e1b..5f3bf8adbe 100644 --- a/src/plugins/timeline/TimelineElementsContent.vue +++ b/src/plugins/timeline/TimelineElementsContent.vue @@ -12,44 +12,38 @@ /> px - + + diff --git a/src/plugins/timeline/TimelineViewLayout.vue b/src/plugins/timeline/TimelineViewLayout.vue index 20f2f8e2e9..b1afb5c780 100644 --- a/src/plugins/timeline/TimelineViewLayout.vue +++ b/src/plugins/timeline/TimelineViewLayout.vue @@ -199,7 +199,17 @@ export default { if (isConfigurationChanged) { console.log('yo'); setContainers(existingContainers); - mutateContainers(); + } + + const selection = openmct.selection.get()[0]; + const selectionContext = selection?.[0]?.context; + const selectionDomainObject = selectionContext?.item; + const selectionType = selectionDomainObject?.type; + + if (selectionType === 'time-strip') { + selectionContext.containers = containers.value; + selectionContext.swimLaneLabelWidth = swimLaneLabelWidth.value; + openmct.selection.select(selection); } }); @@ -295,6 +305,12 @@ export default { sizeFixedContainer(index, size); } + // context action called from outside component + function changeSwimLaneLabelWidthContextAction(size) { + swimLaneLabelWidth.value = size; + mutateSwimLaneLabelWidth(); + } + onBeforeUnmount(() => { compositionCollection.off('add', addItem); compositionCollection.off('remove', removeItem); @@ -322,7 +338,8 @@ export default { endContainerResizing, mutateContainers, toggleFixedContextAction, - changeSizeContextAction + changeSizeContextAction, + changeSwimLaneLabelWidthContextAction }; }, data() {