Multiple item conditional styles (#3017)
Conditional Styles for multiple items #3076 * Preview condition styles on selecting that condition or one of it's styles Do not evaluate conditional styles in edit mode * Conditions styling tweaked - Condition match `is-current` styling for browse and edit modes; - Disallowed pointer events on Conditions to prevent selection in Inspector when not editing; * Highlight current condition in conditionSet view * Addresses review comments. * Condition matching highlighting tweaked - Enable match highlighting during Editing; - Tweaks to `is-current` styling; * Don't reset the callback on destroy * Combine multiple and single selection styling of objects * Fix issue with applying styles in edit mode * Fix item styles bug * Remove comment * Adds back visibility toggle * Set isEditing on initialization. * Addresses review comments - removes use of lodash. Co-authored-by: charlesh88 <charlesh88@gmail.com> Co-authored-by: Deep Tailor <deep.j.tailor@nasa.gov>
This commit is contained in:
@@ -29,6 +29,7 @@ export default class StyleRuleManager extends EventEmitter {
|
||||
this.callback = callback;
|
||||
if (suppressSubscriptionOnEdit) {
|
||||
this.openmct.editor.on('isEditing', this.toggleSubscription.bind(this));
|
||||
this.isEditing = this.openmct.editor.editing;
|
||||
}
|
||||
if (styleConfiguration) {
|
||||
this.initialize(styleConfiguration);
|
||||
@@ -156,7 +157,6 @@ export default class StyleRuleManager extends EventEmitter {
|
||||
}
|
||||
delete this.stopProvidingTelemetry;
|
||||
this.conditionSetIdentifier = undefined;
|
||||
this.isEditing = undefined;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user