Don't navigate to another page, display saved settings instead

This commit is contained in:
SenorSmartyPants 2022-01-25 12:14:59 -06:00
parent d69f27512a
commit 9cbaf01066

View File

@ -58,7 +58,7 @@
}); });
document.querySelector('#TemplateConfigForm') document.querySelector('#TemplateConfigForm')
.addEventListener('submit', function() { .addEventListener('submit', function(e) {
Dashboard.showLoadingMsg(); Dashboard.showLoadingMsg();
ApiClient.getPluginConfiguration(TemplateConfig.pluginUniqueId).then(function (config) { ApiClient.getPluginConfiguration(TemplateConfig.pluginUniqueId).then(function (config) {
config.Options = document.querySelector('#Options').value; config.Options = document.querySelector('#Options').value;
@ -70,6 +70,7 @@
}); });
}); });
e.preventDefault();
return false; return false;
}); });
</script> </script>