Skip to content

Commit

Permalink
Merge pull request #38 from bgandin/master
Browse files Browse the repository at this point in the history
feat: add simulationMode to configuration settings
  • Loading branch information
hknokh authored Aug 15, 2023
2 parents a8dd1a0 + 3280d77 commit e97817c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions javascripts/models/script.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion javascripts/models/script.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions ts/models/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ export class Script {
@NonSerializableIfDefault(false, [CONSTANTS.EXPORT_JSON_TAG])
allOrNone: boolean = false;

@NonSerializableIfDefault(false, [CONSTANTS.EXPORT_JSON_TAG])
simulationMode: boolean = false;

@NonSerializableIfDefault(true, [CONSTANTS.EXPORT_JSON_TAG])
promptOnUpdateError: boolean = true;

Expand Down
2 changes: 1 addition & 1 deletion views/partials/config_sections/configSettings.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="col-4 border-right pr-0">
<!-- Boolean config properties -->
<div class="mt-3"
ng-repeat="prop in ['keepObjectOrderWhileExecute','allOrNone','promptOnUpdateError','promptOnMissingParentObjects','promptOnIssuesInCSVFiles','validateCSVFilesOnly','createTargetCSVFiles','importCSVFilesAsIs','alwaysUseRestApiToUpdateRecords', 'excludeIdsFromCSVFiles', 'fileLog', 'allowFieldTruncation'] | orderBy : 'prop' track by prop">
ng-repeat="prop in ['simulationMode', 'keepObjectOrderWhileExecute','allOrNone','promptOnUpdateError','promptOnMissingParentObjects','promptOnIssuesInCSVFiles','validateCSVFilesOnly','createTargetCSVFiles','importCSVFilesAsIs','alwaysUseRestApiToUpdateRecords', 'excludeIdsFromCSVFiles', 'fileLog', 'allowFieldTruncation'] | orderBy : 'prop' track by prop">
<uib-switch ng-change="ui.configPage.saveConfigHandler()"
id="configGlobalParameterSwitch_{{$index}}" ng-model="ui.state.config()[prop]">
<strong>{{prop}}</strong>
Expand Down

0 comments on commit e97817c

Please sign in to comment.