This commit is contained in:
Joel McKinnon 2019-12-17 08:10:35 -08:00
parent c1d58bb25f
commit ace77dce65
2 changed files with 12 additions and 13 deletions

View File

@ -43,7 +43,7 @@
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.LocalStorage());
openmct.install(openmct.plugins.Generator());

View File

@ -27,19 +27,19 @@ export default function Condition(openmct) {
return {
key: 'condition',
name: 'Condition',
cssClass: 'icon-page',
canView: function (domainObject) {
cssClass: 'icon-summary-widget',
canView: (domainObject => {
return domainObject.type === 'condition';
},
view: function (domainObject) {
}),
view: (domainObject => {
let component;
return {
show: function (element) {
show: (element => {
component = new Vue({
el: element,
components: {
ConditionComponent: ConditionComponent
ConditionComponent
},
provide: {
openmct,
@ -47,15 +47,14 @@ export default function Condition(openmct) {
},
template: '<condition-component></condition-component>'
});
},
destroy: function (element) {
}),
destroy: (element => {
component.$destroy();
component = undefined;
}
})
};
},
priority: function () {
return 1;
}),
priority: (() => { 1 });
}
};
}