From 65a7e7e4fabb0e79137abe9ecaee48b2cb5b4558 Mon Sep 17 00:00:00 2001 From: Shefali Date: Thu, 18 Jan 2024 15:32:33 -0800 Subject: [PATCH 1/4] Use activity id as key if it is available --- src/plugins/timelist/TimelistComponent.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/timelist/TimelistComponent.vue b/src/plugins/timelist/TimelistComponent.vue index 548202518b..9876fd4c91 100644 --- a/src/plugins/timelist/TimelistComponent.vue +++ b/src/plugins/timelist/TimelistComponent.vue @@ -374,7 +374,9 @@ export default { activity.cssClass = PAST_CSS_SUFFIX; } - if (!activity.key) { + if (activity.id) { + activity.key = activity.id; + } else if (!activity.key) { activity.key = uuid(); } From 176d344956c1064ab586475d96c4ad9eff6a7256 Mon Sep 17 00:00:00 2001 From: Shefali Date: Thu, 18 Jan 2024 15:42:48 -0800 Subject: [PATCH 2/4] Ensure the correct option is selected for activity states --- .../plan/inspector/components/PlanActivityStatusView.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/plan/inspector/components/PlanActivityStatusView.vue b/src/plugins/plan/inspector/components/PlanActivityStatusView.vue index 4b964143a3..3ed351d529 100644 --- a/src/plugins/plan/inspector/components/PlanActivityStatusView.vue +++ b/src/plugins/plan/inspector/components/PlanActivityStatusView.vue @@ -26,7 +26,7 @@
{{ heading }}
@@ -39,7 +39,7 @@ const activityStates = [ { key: '', - label: '- Select Activity Status -' + label: '- Set Status -' }, { key: 'active', @@ -97,7 +97,7 @@ export default { }, methods: { setActivityStatus() { - this.currentStatusKey = this.executionState; + this.currentStatusKey = this.executionState ?? this.activityStates[0].key; }, changeActivityStatus() { if (this.currentStatusKey === '') { From 02c796a42b2930cbc966e3a5e99302b7a40c1bc6 Mon Sep 17 00:00:00 2001 From: Shefali Date: Thu, 18 Jan 2024 21:54:17 -0800 Subject: [PATCH 3/4] Add status label --- .../components/PlanActivityStatusView.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/plugins/plan/inspector/components/PlanActivityStatusView.vue b/src/plugins/plan/inspector/components/PlanActivityStatusView.vue index 3ed351d529..5a96ff2442 100644 --- a/src/plugins/plan/inspector/components/PlanActivityStatusView.vue +++ b/src/plugins/plan/inspector/components/PlanActivityStatusView.vue @@ -24,7 +24,11 @@
{{ heading }}
- +
+
Status
+
{{ statusLabel }}
+
+