mirror of
https://github.com/nasa/openmct.git
synced 2025-03-24 21:15:55 +00:00
WIP
This commit is contained in:
parent
c1d58bb25f
commit
ace77dce65
@ -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());
|
||||
|
@ -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 });
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user