fix(js): move platform user files back to static/admin/js

users.js, user-detail.js, user-edit.js, user-create.js are for
managing platform/vendor users, not shop customers. Move them
back to static/admin/js/ where other platform admin files reside.

The customers module retains customers.js which manages actual
shop customers (people who buy from vendors).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-30 22:22:33 +01:00
parent 0b4291d893
commit baf70d6eb1
8 changed files with 6 additions and 6 deletions

View File

@@ -189,5 +189,5 @@
{% endblock %} {% endblock %}
{% block extra_scripts %} {% block extra_scripts %}
<script src="{{ url_for('customers_static', path='admin/js/user-create.js') }}"></script> <script src="{{ url_for('static', path='admin/js/user-create.js') }}"></script>
{% endblock %} {% endblock %}

View File

@@ -221,5 +221,5 @@
{% endblock %} {% endblock %}
{% block extra_scripts %} {% block extra_scripts %}
<script src="{{ url_for('customers_static', path='admin/js/user-detail.js') }}"></script> <script src="{{ url_for('static', path='admin/js/user-detail.js') }}"></script>
{% endblock %} {% endblock %}

View File

@@ -269,5 +269,5 @@
{% endblock %} {% endblock %}
{% block extra_scripts %} {% block extra_scripts %}
<script src="{{ url_for('customers_static', path='admin/js/user-edit.js') }}"></script> <script src="{{ url_for('static', path='admin/js/user-edit.js') }}"></script>
{% endblock %} {% endblock %}

View File

@@ -240,5 +240,5 @@
{% endblock %} {% endblock %}
{% block extra_scripts %} {% block extra_scripts %}
<script src="{{ url_for('customers_static', path='admin/js/users.js') }}"></script> <script src="{{ url_for('static', path='admin/js/users.js') }}"></script>
{% endblock %} {% endblock %}

View File

@@ -1,4 +1,4 @@
// app/modules/customers/static/admin/js/user-create.js // static/admin/js/user-create.js
// Create custom logger for admin user create // Create custom logger for admin user create
const userCreateLog = window.LogConfig.createLogger('ADMIN-USER-CREATE'); const userCreateLog = window.LogConfig.createLogger('ADMIN-USER-CREATE');

View File

@@ -1,4 +1,4 @@
// app/modules/customers/static/admin/js/user-edit.js // static/admin/js/user-edit.js
// Create custom logger for user edit // Create custom logger for user edit
const userEditLog = window.LogConfig.createLogger('USER-EDIT'); const userEditLog = window.LogConfig.createLogger('USER-EDIT');