Files
upload/static/js/webhook-settings.js

11 lines
297 B
JavaScript

(function () {
'use strict';
function load(config = {}) {
document.getElementById('enableWebhook').checked = config.enabled === true;
}
function read() {
return { enabled: document.getElementById('enableWebhook').checked };
}
window.FormWebhookSettings = { load, read };
})();