From 4c76bf34ab946c9d60a7aaeb5fd1b760ccbb7431 Mon Sep 17 00:00:00 2001 From: Shefali Joshi Date: Tue, 5 May 2020 09:55:42 -0700 Subject: [PATCH] Highlight currently winning Condition in Condition Set Edit and Read-only views (#2936) * Preview condition styles on selecting that condition or one of it's styles Co-authored-by: charlesh88 --- src/plugins/condition/StyleRuleManager.js | 1 - src/plugins/condition/components/Condition.vue | 6 ++++++ src/plugins/condition/components/ConditionCollection.vue | 5 ++++- src/plugins/condition/components/conditionals.scss | 7 +++++++ .../condition/components/inspector/conditional-styles.scss | 2 +- 5 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/plugins/condition/StyleRuleManager.js b/src/plugins/condition/StyleRuleManager.js index f371bf8026..fb585455cb 100644 --- a/src/plugins/condition/StyleRuleManager.js +++ b/src/plugins/condition/StyleRuleManager.js @@ -157,7 +157,6 @@ export default class StyleRuleManager extends EventEmitter { delete this.stopProvidingTelemetry; this.conditionSetIdentifier = undefined; this.isEditing = undefined; - this.callback = undefined; } } diff --git a/src/plugins/condition/components/Condition.vue b/src/plugins/condition/components/Condition.vue index 3d93f5d9f0..6f1deb7d3c 100644 --- a/src/plugins/condition/components/Condition.vue +++ b/src/plugins/condition/components/Condition.vue @@ -30,6 +30,7 @@ >
@@ -167,6 +168,7 @@
@@ -199,6 +201,10 @@ export default { ConditionDescription }, props: { + currentConditionId: { + type: String, + default: '' + }, condition: { type: Object, required: true diff --git a/src/plugins/condition/components/ConditionCollection.vue b/src/plugins/condition/components/ConditionCollection.vue index ea5f601e40..4cb042b7b7 100644 --- a/src/plugins/condition/components/ConditionCollection.vue +++ b/src/plugins/condition/components/ConditionCollection.vue @@ -58,6 +58,7 @@