mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-25 11:05:06 -04:00
Minor tweak to service buttons to match other plugins
This commit is contained in:
parent
4a94664279
commit
052d2f0183
1 changed files with 5 additions and 1 deletions
|
|
@ -28,15 +28,19 @@
|
|||
$(document).ready(function() {
|
||||
mapDataToFormUI({'frm_GeneralSettings': "/api/cloudflared/settings/get"}).done(function() {
|
||||
$('.selectpicker').selectpicker('refresh');
|
||||
updateServiceControlUI('cloudflared');
|
||||
});
|
||||
|
||||
updateServiceControlUI('cloudflared');
|
||||
|
||||
$("#reconfigureAct").SimpleActionButton({
|
||||
onPreAction: function() {
|
||||
const dfObj = $.Deferred();
|
||||
saveFormToEndpoint("/api/cloudflared/settings/set", 'frm_GeneralSettings', dfObj.resolve, true, dfObj.reject);
|
||||
return dfObj;
|
||||
},
|
||||
onAction: function() {
|
||||
updateServiceControlUI('cloudflared');
|
||||
},
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue