mirror of
https://github.com/nasa/openmct.git
synced 2025-05-28 21:24:20 +00:00
WIP
This commit is contained in:
parent
c1d58bb25f
commit
ace77dce65
@ -43,7 +43,7 @@
|
|||||||
openmct.legacyRegistry.enable.bind(openmct.legacyRegistry)
|
openmct.legacyRegistry.enable.bind(openmct.legacyRegistry)
|
||||||
);
|
);
|
||||||
|
|
||||||
openmct.install(openmct.plugins.Espresso());
|
openmct.install(openmct.plugins.Snow());
|
||||||
openmct.install(openmct.plugins.MyItems());
|
openmct.install(openmct.plugins.MyItems());
|
||||||
openmct.install(openmct.plugins.LocalStorage());
|
openmct.install(openmct.plugins.LocalStorage());
|
||||||
openmct.install(openmct.plugins.Generator());
|
openmct.install(openmct.plugins.Generator());
|
||||||
|
@ -27,19 +27,19 @@ export default function Condition(openmct) {
|
|||||||
return {
|
return {
|
||||||
key: 'condition',
|
key: 'condition',
|
||||||
name: 'Condition',
|
name: 'Condition',
|
||||||
cssClass: 'icon-page',
|
cssClass: 'icon-summary-widget',
|
||||||
canView: function (domainObject) {
|
canView: (domainObject => {
|
||||||
return domainObject.type === 'condition';
|
return domainObject.type === 'condition';
|
||||||
},
|
}),
|
||||||
view: function (domainObject) {
|
view: (domainObject => {
|
||||||
let component;
|
let component;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
show: function (element) {
|
show: (element => {
|
||||||
component = new Vue({
|
component = new Vue({
|
||||||
el: element,
|
el: element,
|
||||||
components: {
|
components: {
|
||||||
ConditionComponent: ConditionComponent
|
ConditionComponent
|
||||||
},
|
},
|
||||||
provide: {
|
provide: {
|
||||||
openmct,
|
openmct,
|
||||||
@ -47,15 +47,14 @@ export default function Condition(openmct) {
|
|||||||
},
|
},
|
||||||
template: '<condition-component></condition-component>'
|
template: '<condition-component></condition-component>'
|
||||||
});
|
});
|
||||||
},
|
}),
|
||||||
destroy: function (element) {
|
destroy: (element => {
|
||||||
component.$destroy();
|
component.$destroy();
|
||||||
component = undefined;
|
component = undefined;
|
||||||
}
|
})
|
||||||
};
|
};
|
||||||
},
|
}),
|
||||||
priority: function () {
|
priority: (() => { 1 });
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user