2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

User settings are now accessed via unique KEY

This commit is contained in:
Oliver Walters
2022-05-08 10:58:31 +10:00
parent dd017f36c7
commit 5560706c33
2 changed files with 16 additions and 2 deletions

View File

@ -80,7 +80,7 @@ $('table').find('.boolean-setting').change(function() {
if (plugin) {
url = `/api/plugin/settings/${pk}/`;
} else if (user) {
url = `/api/settings/user/${pk}/`;
url = `/api/settings/user/${setting}/`;
} else if (notification) {
url = `/api/settings/notification/${pk}/`;
}
@ -125,6 +125,7 @@ $('table').find('.btn-edit-setting').click(function() {
pk = setting;
} else {
title = '{% trans "Edit User Setting" %}';
pk = setting;
}
editSetting(pk, {