From b16305afef495076913cd207258e966f0047d78d Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 4 May 2022 17:40:04 +0200 Subject: [PATCH] add html for notification setting --- InvenTree/templates/InvenTree/settings/setting.html | 2 +- InvenTree/templates/InvenTree/settings/settings.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/InvenTree/templates/InvenTree/settings/setting.html b/InvenTree/templates/InvenTree/settings/setting.html index db1cdec15f..95865700fe 100644 --- a/InvenTree/templates/InvenTree/settings/setting.html +++ b/InvenTree/templates/InvenTree/settings/setting.html @@ -24,7 +24,7 @@ {% if setting.is_bool %}
- +
{% else %}
diff --git a/InvenTree/templates/InvenTree/settings/settings.html b/InvenTree/templates/InvenTree/settings/settings.html index 0039e8ee1a..b35ec0107a 100644 --- a/InvenTree/templates/InvenTree/settings/settings.html +++ b/InvenTree/templates/InvenTree/settings/settings.html @@ -70,6 +70,7 @@ $('table').find('.boolean-setting').change(function() { var pk = $(this).attr('pk'); var plugin = $(this).attr('plugin'); var user = $(this).attr('user'); + var notification = $(this).attr('notification'); var checked = this.checked; @@ -80,6 +81,8 @@ $('table').find('.boolean-setting').change(function() { url = `/api/plugin/settings/${pk}/`; } else if (user) { url = `/api/settings/user/${pk}/`; + } else if (notification) { + url = `/api/settings/notification/${pk}/`; } inventreePut(