UNPKG

graphdb-workbench

Version:
2 lines 1.02 kB
export const __webpack_id__=67044;export const __webpack_ids__=[67044,81710];export const __webpack_modules__={67044:(e,o,n)=>{n.r(o),n(81710),angular.module("graphdb.framework.monitoring.backupandrestore",["graphdb.framework.monitoring.backupandrestore.controllers"])},81710:()=>{function e(e,o,n){let r;e.loading=!1,e.initialized=!1,e.backupAndRestoreInfos=void 0,e.hasClusterOperation=!1,e.paused=!1,e.hasToShowValue=e=>"boolean"==typeof e||!!e,e.togglePause=()=>{e.paused=!e.paused};const a=()=>{e.loading||e.paused||(e.loading=!0,n.monitorBackup().then(o=>{e.backupAndRestoreInfos=o,e.initialized=!0,e.hasClusterOperation=e.backupAndRestoreInfos.some(e=>e.nodePerformingClusterBackup)}).finally(()=>e.loading=!1))};e.$on("$destroy",()=>{r&&o.cancel(r)}),a(),r=o(()=>a(),2e3)}angular.module("graphdb.framework.monitoring.backupandrestore.controllers",[]).controller("BackupAndRestoreCtrl",e),e.$inject=["$scope","$interval","MonitoringRestService"]}}; //# sourceMappingURL=67044.ed2dc3cecae2170b9973.bundle.js.map