Skip to content

Commit c79b843

Browse files
author
Adam Collins
committed
#483 update text in addPoints
1 parent d5fb63c commit c79b843

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

grails-app/assets/javascripts/spApp/controller/addPointsCtrl.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'$uibModalInstance', 'PredefinedAreasService', 'BiocacheService', 'LoggerService', 'data',
1313
function (LayoutService, $scope, MapService, $timeout, LayersService, $uibModalInstance, PredefinedAreasService, BiocacheService, LoggerService, inputData) {
1414

15-
$scope.inputData = inputData;
15+
$scope.inputData = inputData || {}
1616

1717
$scope.enablePriorUploads = inputData.enablePriorUploads !== undefined ? inputData.enablePriorUploads : true
1818

@@ -204,6 +204,7 @@
204204
bs: $SH.sandboxSpatialServiceUrl,
205205
ws: $SH.sandboxSpatialUiUrl
206206
});
207+
$scope.$close();
207208
} else {
208209
$scope.addToMapAndClose();
209210
}

grails-app/assets/javascripts/spApp/templates/addPointsContent.tpl.htm

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ <h3 i18n="558" class="panel-title">Select method</h3>
2222
value="existing" name="addPoints_method"
2323
ng-change="method='existing'; file=null">Previous upload</label></div>
2424
</div>
25+
<div i18n="564" style="font-style: italic">Note: For large uploads, the number of records displayed may initially be lower than expected due to background processing. Please wait a few minutes while background processing takes place.</div>
2526
<br/>
2627
</div>
2728
</div>
@@ -144,6 +145,8 @@ <h3 i18n="556" class="panel-title">Importing</h3>
144145
<div class="panel-body">
145146
<div style="display: flex"><div class="inline-spinner" style="margin-right:10px" ng-show="status != 'finished' && status != ''"></div>{{message}}</div>
146147

148+
<div i18n="565" ng-show="status === 'finished'" style="font-style: italic">Note: For large uploads, the number of records displayed may initially be lower than expected due to background processing. Please wait a few minutes for the final count to update before attempting another upload.</div>
149+
147150
<div ng-show="errorMsg" style="color: red">{{ errorMsg }}</div>
148151
<br/>
149152
</div>

grails-app/i18n/messages.properties

+2
Original file line numberDiff line numberDiff line change
@@ -611,3 +611,5 @@ Area\ Report\ -\ interactive=Area Report - interactive
611611
561=Your uploads
612612
562=Update the dataset name
613613
563=View Records
614+
615+
564=Note: For large uploads, the number of records displayed may initially be lower than expected due to background processing. Please wait a few minutes while background processing takes place.

0 commit comments

Comments
 (0)