Skip to content

Commit 4323aad

Browse files
authored
Fix MethodRow stories to not all show as modeled (#2850)
1 parent cd7c26f commit 4323aad

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

extensions/ql-vscode/src/stories/model-editor/MethodRow.stories.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const method: Method = {
2727
methodName: "open",
2828
methodParameters: "()",
2929
supported: false,
30-
supportedType: "summary",
30+
supportedType: "none",
3131
usages: [
3232
{
3333
label: "open(...)",
@@ -70,30 +70,35 @@ export const Unmodeled = Template.bind({});
7070
Unmodeled.args = {
7171
method,
7272
modeledMethod: undefined,
73+
methodCanBeModeled: true,
7374
};
7475

7576
export const Source = Template.bind({});
7677
Source.args = {
7778
method,
7879
modeledMethod: { ...modeledMethod, type: "source" },
80+
methodCanBeModeled: true,
7981
};
8082

8183
export const Sink = Template.bind({});
8284
Sink.args = {
8385
method,
8486
modeledMethod: { ...modeledMethod, type: "sink" },
87+
methodCanBeModeled: true,
8588
};
8689

8790
export const Summary = Template.bind({});
8891
Summary.args = {
8992
method,
9093
modeledMethod: { ...modeledMethod, type: "summary" },
94+
methodCanBeModeled: true,
9195
};
9296

9397
export const Neutral = Template.bind({});
9498
Neutral.args = {
9599
method,
96100
modeledMethod: { ...modeledMethod, type: "neutral" },
101+
methodCanBeModeled: true,
97102
};
98103

99104
export const AlreadyModeled = Template.bind({});
@@ -107,4 +112,5 @@ ModelingInProgress.args = {
107112
method,
108113
modeledMethod,
109114
modelingInProgress: true,
115+
methodCanBeModeled: true,
110116
};

0 commit comments

Comments
 (0)