addressed review comments

This commit is contained in:
Joel McKinnon 2019-12-23 12:14:35 -08:00
parent 45e56798c5
commit 2f2de3952d
3 changed files with 6 additions and 4 deletions

View File

@ -43,7 +43,7 @@
openmct.legacyRegistry.enable.bind(openmct.legacyRegistry)
);
openmct.install(openmct.plugins.Snow());
openmct.install(openmct.plugins.Espresso());
openmct.install(openmct.plugins.MyItems());
openmct.install(openmct.plugins.LocalStorage());
openmct.install(openmct.plugins.Generator());

View File

@ -26,6 +26,8 @@ import Vue from 'vue';
export default function ConditionSetViewProvider(openmct) {
return {
key: 'conditionSet.view',
name: 'Condition Set',
cssClass: 'icon-summary-widget',
canView: function (domainObject) {
return domainObject.type === 'conditionSet';
},
@ -50,11 +52,12 @@ export default function ConditionSetViewProvider(openmct) {
domainObject
};
},
template: '<condition-set ref="conditionSet" :domain-object="domainObject"></condition-set>'
template: '<condition-set :domain-object="domainObject"></condition-set>'
});
},
destroy() {
component.$destroy();
component = undefined;
}
};
},

View File

@ -36,9 +36,8 @@ export default {
}
},
data() {
let domainObject = JSON.parse(JSON.stringify(this.domainObject));
return {
internalDomainObject: domainObject
internalDomainObject: this.domainObject
};
},
inject: ['openmct']