From 365ec729ff5b91ba9ed6ae389541609f99c76eb5 Mon Sep 17 00:00:00 2001 From: Jette Petzold Date: Mon, 18 Sep 2023 17:41:26 +0200 Subject: [PATCH] fixed uca grouping option --- .../stpa/diagram/synthesis-options.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/extension/src-language-server/stpa/diagram/synthesis-options.ts b/extension/src-language-server/stpa/diagram/synthesis-options.ts index 9113fdce..824d037f 100644 --- a/extension/src-language-server/stpa/diagram/synthesis-options.ts +++ b/extension/src-language-server/stpa/diagram/synthesis-options.ts @@ -200,12 +200,12 @@ const groupingOfUCAs: ValuedSynthesisOption = { id: groupingUCAsID, name: "Group UCAs", type: TransformationOptionType.CHOICE, - initialValue: "No grouping", + initialValue: "No Grouping", currentValue: "No grouping", - values: ["No grouping", "Group by Control Action", "Group by System Component"], + values: ["No Grouping", "Group by Control Action", "Group by System Component"], category: layoutCategory, }, - currentValue: "No grouping", + currentValue: "No Grouping", }; /** @@ -506,7 +506,7 @@ export class StpaSynthesisOptions { if (option) { switch (value) { case groupValue.NO_GROUPING: - option.currentValue = "no grouping"; + option.currentValue = "No Grouping"; break; case groupValue.CONTROL_ACTION: option.currentValue = "Group by Control Action"; @@ -520,9 +520,9 @@ export class StpaSynthesisOptions { } getGroupingUCAs(): groupValue { - const option = this.getOption(groupingUCAsID)?.currentValue; + const option = this.getOption(groupingUCAsID); switch (option?.currentValue) { - case "No grouping": + case "No Grouping": return groupValue.NO_GROUPING; case "Group by Control Action": return groupValue.CONTROL_ACTION;