From 6db78af69fa69b8e76630b8139d44f863c1bf7ea Mon Sep 17 00:00:00 2001 From: Joel McKinnon Date: Sun, 23 Feb 2020 09:58:32 -0800 Subject: [PATCH 1/2] fixed condition name persistance --- src/plugins/condition/components/Condition.vue | 1 + src/plugins/condition/components/ConditionCollection.vue | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/condition/components/Condition.vue b/src/plugins/condition/components/Condition.vue index c930fee550..4db35a244a 100644 --- a/src/plugins/condition/components/Condition.vue +++ b/src/plugins/condition/components/Condition.vue @@ -68,6 +68,7 @@ diff --git a/src/plugins/condition/components/ConditionCollection.vue b/src/plugins/condition/components/ConditionCollection.vue index cde15c22f9..c7ed17d75f 100644 --- a/src/plugins/condition/components/ConditionCollection.vue +++ b/src/plugins/condition/components/ConditionCollection.vue @@ -250,7 +250,6 @@ export default { let conditionObj = { isDefault: isDefault, type: 'condition', - name: isDefault ? 'Default' : (isClone ? 'Copy of ' : '') + 'Unnamed Condition', identifier: { namespace: this.domainObject.identifier.namespace, key: uuid() From acd75f86f496b3e68a9b4cb418d6ef18d587cc09 Mon Sep 17 00:00:00 2001 From: David Tsay Date: Wed, 26 Feb 2020 11:07:25 -0800 Subject: [PATCH 2/2] add name to conditions view --- src/plugins/condition/ConditionSetViewProvider.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/condition/ConditionSetViewProvider.js b/src/plugins/condition/ConditionSetViewProvider.js index 752bb5e581..91bd2f5409 100644 --- a/src/plugins/condition/ConditionSetViewProvider.js +++ b/src/plugins/condition/ConditionSetViewProvider.js @@ -26,6 +26,7 @@ import Vue from 'vue'; export default class ConditionSetViewProvider { constructor(openmct) { this.openmct = openmct; + this.name = 'Conditions View'; this.key = 'conditionSet.view'; this.cssClass = 'icon-conditional'; // TODO: replace with class for new icon }