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 @@ + \ No newline at end of file diff --git a/apps/templates/home/index.html b/apps/templates/home/index.html index 7c6cc10..acc7eac 100644 --- a/apps/templates/home/index.html +++ b/apps/templates/home/index.html @@ -49,7 +49,10 @@
- + -
@@ -93,7 +96,7 @@
-
{% include "home/includes/settingstab.html" %}
+ @@ -104,6 +107,7 @@ {% include "home/includes/submodal.html" %} {% include "home/includes/filtermodal.html" %} {% include "home/includes/deletemodal.html" %} +{% include "home/includes/settingsmodal.html" %} {% endblock content %} {% block javascript %}