Skip to content

Commit

Permalink
fixed uca grouping option
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakae committed Sep 18, 2023
1 parent 7391c6b commit 365ec72
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions extension/src-language-server/stpa/diagram/synthesis-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};

/**
Expand Down Expand Up @@ -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";
Expand All @@ -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;
Expand Down

0 comments on commit 365ec72

Please sign in to comment.