2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-22 02:02:14 +00:00
This commit is contained in:
Jay07GIT 2024-07-19 11:18:22 +05:30
parent 2ea7b0cbf3
commit cb122b1506
No known key found for this signature in database
GPG Key ID: AC6B0308EFC79008
3 changed files with 1 additions and 4 deletions

View File

@ -329,7 +329,7 @@
<input type="file" id="batchChangeCsv" ng-model="csvInput" name="batchChangeCsv" class="batchChangeCsv" ng-change="uploadCSV(createBatchChangeForm.batchChangeCsv.$viewValue, batchChangeLimit )" batch-change-file>
<p><a href="https://www.vinyldns.io/portal/dns-changes#dns-change-csv-import" target="_blank" rel="noopener noreferrer">See documentation for sample CSV</a></p>
</div>
<p ng-if="newBatch.changes.length >= batchChangeLimit">Limit reached. Cannot add more than {{batchChangeLimit}} records per DNS change.</p>
<p ng-if="newBatch.changes.length > batchChangeLimit">Limit reached. Cannot add more than {{batchChangeLimit}} records per DNS change.</p>
</div>
<div class="panel-footer clearfix">
<div ng-if="formStatus=='pendingSubmit'" class="pull-right">

View File

@ -164,9 +164,7 @@
$scope.uploadCSV = function(file, batchChangeLimit) {
parseFile(file, batchChangeLimit).then(function(dataLength){
$scope.alerts.push({type: 'success', content: 'Successfully imported ' + dataLength + ' DNS changes.' });
}, function(error) {
$scope.alerts.push({type: 'danger', content: error});
});

View File

@ -30,7 +30,6 @@
"allowManualReview": allowManualReview
}
var url = utilityService.urlBuilder('/api/dnschanges', params);
return $http.post(url, data, {headers: utilityService.getCsrfHeader()});
let loader = $("#loader");
loader.modal({
backdrop: "static",