+
+
+
diff --git a/modules/portal/public/lib/services/records/service.records.js b/modules/portal/public/lib/services/records/service.records.js
index 42e1d1f2c..8c8a17f75 100644
--- a/modules/portal/public/lib/services/records/service.records.js
+++ b/modules/portal/public/lib/services/records/service.records.js
@@ -77,7 +77,16 @@ angular.module('service.records', [])
"recordTypeSort": recordTypeSort
};
var url = utilityService.urlBuilder("/api/zones/"+id+"/recordsets", 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.getRecordSet = function (rsid) {