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.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());

View File

@ -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;
} }
}; };
} }