diff --git a/apps/static/js/home/settings.js b/apps/static/js/home/settings.js index 64b95ac..7503987 100644 --- a/apps/static/js/home/settings.js +++ b/apps/static/js/home/settings.js @@ -14,7 +14,16 @@ $(document).on("selectedServerChange", async function() { updateColourInput("defaultEmbedColour", "#" + server.default_embed_colour); }); +$("#serverSettingsBtn").on("click", async function() { + await showServerSettingsModal(); +}); + +async function showServerSettingsModal() { + const server = getCurrentlyActiveServer(); + $("#serverSettingsModal").modal("show"); +} + $("#serverSettingsForm").on("submit", function(e) { e.preventDefault(); alert("not implemented"); -}) \ No newline at end of file +}) diff --git a/apps/templates/home/includes/settingsmodal.html b/apps/templates/home/includes/settingsmodal.html new file mode 100644 index 0000000..b123974 --- /dev/null +++ b/apps/templates/home/includes/settingsmodal.html @@ -0,0 +1,20 @@ +