mirror of
https://github.com/nasa/openmct.git
synced 2025-06-05 00:50:49 +00:00
intitializing display layouts with objectStyles properties, so styles tab shows for them, setting it for older versions
This commit is contained in:
parent
e7eb07023c
commit
7cd1517cc0
@ -31,7 +31,8 @@ export default function DisplayLayoutType() {
|
|||||||
domainObject.composition = [];
|
domainObject.composition = [];
|
||||||
domainObject.configuration = {
|
domainObject.configuration = {
|
||||||
items: [],
|
items: [],
|
||||||
layoutGrid: [10, 10]
|
layoutGrid: [10, 10],
|
||||||
|
objectStyles: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
form: [
|
form: [
|
||||||
|
@ -226,6 +226,11 @@ export default {
|
|||||||
this.composition.load();
|
this.composition.load();
|
||||||
this.gridDimensions = [this.$el.offsetWidth, this.$el.scrollHeight];
|
this.gridDimensions = [this.$el.offsetWidth, this.$el.scrollHeight];
|
||||||
|
|
||||||
|
// Initialize objectStyles if it doesn't exist for older versions
|
||||||
|
if (!this.domainObject.configuration.objectStyles) {
|
||||||
|
this.domainObject.configuration.objectStyles = {};
|
||||||
|
}
|
||||||
|
|
||||||
this.unObserveItems = this.openmct.objects.observe(
|
this.unObserveItems = this.openmct.objects.observe(
|
||||||
this.domainObject,
|
this.domainObject,
|
||||||
'configuration.items',
|
'configuration.items',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user