2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-30 13:58:15 +00:00

Added spinner in zone search

This commit is contained in:
Jay07GIT
2022-09-02 18:42:34 +05:30
parent 72976c8828
commit 3485401bd3
2 changed files with 13 additions and 1 deletions

View File

@@ -144,6 +144,9 @@
</div>
</div>
</div>
<div class="modal fade" id="loader" tabindex="-1" role="dialog" >
<div class="spinner" ></div>
</div>
<div class="tab-pane" id="allZones">
<div class="row">
<div class="col-md-12">

View File

@@ -30,7 +30,16 @@ angular.module('service.zones', [])
"ignoreAccess": ignoreAccess
};
var url = groupsService.urlBuilder("/api/zones", params);
return $http.get(url);
let loader = $("#loader");
loader.modal({
backdrop: "static", //remove ability to close modal with click
keyboard: false, //remove option to close with keyboard
show: true //Display loader!
})
let promis = $http.get(url);
// Hide loader when api gets response
promis.then(()=>loader.modal("hide"), ()=>loader.modal("hide"))
return promis
};
this.getBackendIds = function() {