Skip to content

Commit 62e1b4c

Browse files
committed
fix(table group): remove stepper from edit dialog
1 parent 2ead7ac commit 62e1b4c

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

testgen/ui/components/frontend/js/pages/table_group_wizard.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,33 +146,36 @@ const TableGroupWizard = (props) => {
146146
return '';
147147
}
148148

149-
return WizardProgressIndicator(
150-
[
149+
const allIndicators = [
151150
{
152-
index: 1,
153151
title: 'Table Group',
154152
skipped: false,
155153
includedSteps: ['tableGroup', 'testTableGroup'],
156154
},
157155
{
158-
index: 2,
159156
title: 'Profiling',
160157
skipped: !stepsState.runProfiling.rawVal,
161158
includedSteps: ['runProfiling'],
162159
},
163160
{
164-
index: 3,
165161
title: 'Testing',
166162
skipped: !stepsState.testSuite.rawVal.generate,
167163
includedSteps: ['testSuite'],
168164
},
169165
{
170-
index: 4,
171166
title: 'Monitors',
172167
skipped: !stepsState.monitorSuite.rawVal.generate,
173168
includedSteps: ['monitorSuite'],
174169
},
175-
],
170+
].filter(indicator => indicator.includedSteps.some(s => steps.includes(s)))
171+
.map((indicator, i) => ({ ...indicator, index: i + 1 }));
172+
173+
if (allIndicators.length <= 1) {
174+
return '';
175+
}
176+
177+
return WizardProgressIndicator(
178+
allIndicators,
176179
{
177180
index: stepIndex,
178181
name: steps[stepIndex],

0 commit comments

Comments
 (0)