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:
@@ -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">
|
||||
|
@@ -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() {
|
||||
|
Reference in New Issue
Block a user