File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
e2e-test/cypress/e2e/designer
runner/src/server/plugins/engine/page-controllers Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ Feature: Multi Input Field Edit
155
155
When I enter "First item" for "Item name"
156
156
And I click "Save and add another"
157
157
When I enter "Second item" for "Item name"
158
- And I click "Save and add another "
158
+ And I click "Save"
159
159
Then I should not see the "Save and add another" button
160
+ And I should not see the "Save" button
160
161
And I should see the "Save and continue" button
Original file line number Diff line number Diff line change @@ -241,6 +241,13 @@ export class RepeatingFieldPageController extends PageController {
241
241
} ;
242
242
243
243
response . source . context . maxMultiInputFieldRows = this . inputComponent . options ?. maxMultiInputFieldRows ;
244
+
245
+ const maxRows = this . inputComponent . options ?. maxMultiInputFieldRows ;
246
+ const currentRowCount = rows ? rows . length : 0 ;
247
+
248
+ if ( maxRows && ( currentRowCount >= maxRows - 1 ) ) {
249
+ this . saveText = this . model ?. def ?. metadata ?. isWelsh ? "Cadw" : "Save" ;
250
+ }
244
251
}
245
252
}
246
253
You can’t perform that action at this time.
0 commit comments