mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
21 lines
469 B
JavaScript
21 lines
469 B
JavaScript
{% load inventree_extras %}
|
|
|
|
/* exported
|
|
user_settings,
|
|
global_settings,
|
|
*/
|
|
|
|
{% user_settings request.user as USER_SETTINGS %}
|
|
const user_settings = {
|
|
{% for key, value in USER_SETTINGS.items %}
|
|
{{ key }}: {% primitive_to_javascript value %},
|
|
{% endfor %}
|
|
};
|
|
|
|
{% global_settings as GLOBAL_SETTINGS %}
|
|
const global_settings = {
|
|
{% for key, value in GLOBAL_SETTINGS.items %}
|
|
{{ key }}: {% primitive_to_javascript value %},
|
|
{% endfor %}
|
|
};
|