mirror of
https://github.com/VinylDNS/vinyldns
synced 2025-08-31 22:35:19 +00:00
Added spinner in zone search
This commit is contained in:
@@ -144,6 +144,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</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="tab-pane" id="allZones">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
@@ -30,7 +30,16 @@ angular.module('service.zones', [])
|
|||||||
"ignoreAccess": ignoreAccess
|
"ignoreAccess": ignoreAccess
|
||||||
};
|
};
|
||||||
var url = groupsService.urlBuilder("/api/zones", params);
|
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() {
|
this.getBackendIds = function() {
|
||||||
|
Reference in New Issue
Block a user