Skip to content

Commit

Permalink
update warning message, re #10074
Browse files Browse the repository at this point in the history
  • Loading branch information
apeters committed Sep 26, 2023
1 parent 69bc4b9 commit ec6f8c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 1 addition & 2 deletions arches/app/templates/javascript.htm
Original file line number Diff line number Diff line change
Expand Up @@ -765,8 +765,7 @@
bulk-string-editor-replace='{% trans "Replace Text" as bulkStringEditorReplace %} "{{ bulkStringEditorReplace|escapejs }}"'
select-edit-operation='{% trans "Select an Edit Operation" as SelectEditOperation %} "{{ SelectEditOperation|escapejs }}"'
preview-count-stats='(limit, possible, resCount) => {return {% trans "Showing first ${limit} of ${possible} values in ${resCount} resources" as previewCountStats %} `{{ previewCountStats|escapejs }}` }'
bulk-edit-limit-info='(limit) => {return {% trans "If the number of edits exceeds the limit of ${limit} values, you may need to perform bulk-edit multiple times" as bulkEditLimitInfo %} `{{ bulkEditLimitInfo|escapejs }}`}'
bulk-edit-limit-warning='(limit) => {return {% trans "The number of possible edits exceeds the limit of ${limit} values, only the first ${limit} will be updated" as bulkEditLimitWarning %} `{{ bulkEditLimitWarning|escapejs }}`}'
bulk-edit-limit-warning='(limit) => {return {% trans "For safety, only ${limit} bulk edits are allowed at a time. If you need to edit more than ${limit} entries, you will need to perform the operation multiple times." as bulkEditLimitWarning %} `{{ bulkEditLimitWarning|escapejs }}`}'
show='{% trans "show" as show %} "{{ show|escapejs }}"'
hide='{% trans "hide" as hide %} "{{ hide|escapejs }}"'
first-five-shown='{% trans "First 5 errors are shown" as firstFiveShown %} "{{ firstFiveShown|escapejs }}"'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,6 @@ <h3>
</span>
</div>
</div>
<div>
<p class="pad-btm" data-bind="ifnot: showPreview">
<span data-bind="text: $root.translations.bulkEditLimitInfo(config.updateLimit.toLocaleString())"></span>
</p>
</div>
<button data-bind="click: preview, css: {disabled: !ready()}" class="btn btn-success">
<span data-bind="text: $root.translations.preview"></span>
<i class="fa fa-spin fa-spinner" data-bind="visible: previewing()"></i>
Expand All @@ -148,7 +143,7 @@ <h3 style="margin-top: 0px;">
<span data-bind="text: $root.translations.previewCountStats(numberOfTiles()>5?5:numberOfTiles(),numberOfTiles(),numberOfResources())"></span>
</h3>
<h3 style="margin-top: 0px;color:red;" data-bind="if: numberOfTiles() > config.updateLimit">
<span data-bind="text: $root.translations.bulkEditLimitWarning(config.updateLimit.toLocaleString())"></span>
<span style="margin: 2px;" class="fa fa-info-circle"></span><span data-bind="text: $root.translations.bulkEditLimitWarning(config.updateLimit.toLocaleString())"></span>
</h3>
<table class="table table-striped csv-mapping-table">
<thead>
Expand All @@ -161,7 +156,7 @@ <h3 style="margin-top: 0px;color:red;" data-bind="if: numberOfTiles() > config.u
</th>
</tr>
</thead>
<tbody data-bind="value: console.log(previewValue())">
<tbody>
<!-- ko foreach: { data: previewValue(), as: "row" } -->
<!-- ko if: row[0] -->
<tr>
Expand Down

0 comments on commit ec6f8c6

Please sign in to comment.