Commit 9ceccdb9 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(proxy) add download button

(cherry picked from commit c215b358)
parent 24c2e93f
......@@ -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
*/
......@@ -270,6 +290,7 @@ POSSIBILITY OF SUCH DAMAGE.
<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="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>
</div>
</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