mirror of
https://github.com/nasa/openmct.git
synced 2025-02-21 01:42:31 +00:00
pass idEditing prop to timestrip component
This commit is contained in:
parent
123186bee2
commit
650e9c028a
@ -38,11 +38,12 @@ export default function TimelineViewProvider(openmct, extendedLinesBus) {
|
||||
},
|
||||
|
||||
view: function (domainObject, objectPath) {
|
||||
let component = null;
|
||||
let _destroy = null;
|
||||
|
||||
return {
|
||||
show: function (element) {
|
||||
const { destroy } = mount(
|
||||
show: function (element, isEditing) {
|
||||
const { vNode, destroy } = mount(
|
||||
{
|
||||
el: element,
|
||||
components: {
|
||||
@ -55,15 +56,24 @@ export default function TimelineViewProvider(openmct, extendedLinesBus) {
|
||||
composition: openmct.composition.get(domainObject),
|
||||
extendedLinesBus
|
||||
},
|
||||
template: '<timeline-view-layout></timeline-view-layout>'
|
||||
data() {
|
||||
return {
|
||||
isEditing
|
||||
};
|
||||
},
|
||||
template: '<timeline-view-layout :is-editing="isEditing"></timeline-view-layout>'
|
||||
},
|
||||
{
|
||||
app: openmct.app,
|
||||
element
|
||||
}
|
||||
);
|
||||
component = vNode.componentInstance;
|
||||
_destroy = destroy;
|
||||
},
|
||||
onEditModeChange(isEditing) {
|
||||
component.isEditing = isEditing;
|
||||
},
|
||||
destroy: function () {
|
||||
if (_destroy) {
|
||||
_destroy();
|
||||
|
Loading…
x
Reference in New Issue
Block a user