Commit c215b358 authored by Ad Schellevis's avatar Ad Schellevis

(proxy) add download button

parent a928f18a
...@@ -97,6 +97,26 @@ POSSIBILITY OF SUCH DAMAGE. ...@@ -97,6 +97,26 @@ POSSIBILITY OF SUCH DAMAGE.
}); });
}); });
/**
*
* Download ACLs, no reconfigure
*/
$("#downloadAct").click(function(){
$("#downloadAct_progress").addClass("fa fa-spinner fa-pulse");
ajaxCall(url="/api/proxy/service/downloadacls", sendData={}, callback=function(data,status) {
// when done, disable progress animation.
$("#downloadAct_progress").removeClass("fa fa-spinner fa-pulse");
if (status != "success" || data['status'] != 'ok') {
BootstrapDialog.show({
type: BootstrapDialog.TYPE_WARNING,
title: "Error fetching remote acls",
message: data['status'],
draggable: true
});
}
});
});
/** /**
* setup cron item * setup cron item
*/ */
...@@ -270,6 +290,7 @@ POSSIBILITY OF SUCH DAMAGE. ...@@ -270,6 +290,7 @@ POSSIBILITY OF SUCH DAMAGE.
<hr/> <hr/>
<button class="btn btn-primary" id="reconfigureAct" type="button"><b>{{ lang._('Apply') }}</b><i id="reconfigureAct_progress" class=""></i></button> <button class="btn btn-primary" id="reconfigureAct" type="button"><b>{{ lang._('Apply') }}</b><i id="reconfigureAct_progress" class=""></i></button>
<button class="btn btn-primary" id="fetchandreconfigureAct" type="button"><b>{{ lang._('Download ACLs & Apply') | e }}</b><i id="fetchandreconfigureAct_progress" class=""></i></button> <button class="btn btn-primary" id="fetchandreconfigureAct" type="button"><b>{{ lang._('Download ACLs & Apply') | e }}</b><i id="fetchandreconfigureAct_progress" class=""></i></button>
<button class="btn btn-primary" id="downloadAct" type="button"><b>{{ lang._('Download ACLs') | e }}</b><i id="downloadAct_progress" class=""></i></button>
<button class="btn btn-primary" id="ScheduleAct" type="button"><b>{{ lang._('Schedule with Cron') }}</b><i id="scheduleAct_progress" class=""></i></button> <button class="btn btn-primary" id="ScheduleAct" type="button"><b>{{ lang._('Schedule with Cron') }}</b><i id="scheduleAct_progress" class=""></i></button>
</div> </div>
</td> </td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment