From d462c1e4d6de7c7d31e6587edf51cdb7f94eb429 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch <p.jentsch@uni-bielefeld.de>
Date: Wed, 11 Jan 2023 13:47:09 +0100
Subject: [PATCH] Rename PublicUserList to UserList

---
 app/static/js/ResourceLists/ResourceList.js                 | 2 +-
 .../js/ResourceLists/{PublicUserList.js => UserList.js}     | 6 +++---
 app/templates/_scripts.html.j2                              | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
 rename app/static/js/ResourceLists/{PublicUserList.js => UserList.js} (95%)

diff --git a/app/static/js/ResourceLists/ResourceList.js b/app/static/js/ResourceLists/ResourceList.js
index 7adc0e08..7fe7dec6 100644
--- a/app/static/js/ResourceLists/ResourceList.js
+++ b/app/static/js/ResourceLists/ResourceList.js
@@ -10,9 +10,9 @@ class ResourceList {
     JobList.autoInit();
     JobInputList.autoInit();
     JobResultList.autoInit();
-    PublicUserList.autoInit();
     SpaCyNLPPipelineModelList.autoInit();
     TesseractOCRPipelineModelList.autoInit();
+    UserList.autoInit();
     AdminUserList.autoInit();
   }
 
diff --git a/app/static/js/ResourceLists/PublicUserList.js b/app/static/js/ResourceLists/UserList.js
similarity index 95%
rename from app/static/js/ResourceLists/PublicUserList.js
rename to app/static/js/ResourceLists/UserList.js
index e6cfff34..d871ec31 100644
--- a/app/static/js/ResourceLists/PublicUserList.js
+++ b/app/static/js/ResourceLists/UserList.js
@@ -1,7 +1,7 @@
-class PublicUserList extends ResourceList {
+class UserList extends ResourceList {
   static autoInit() {
-    for (let publicUserListElement of document.querySelectorAll('.public-user-list:not(.no-autoinit)')) {
-      new PublicUserList(publicUserListElement);
+    for (let publicUserListElement of document.querySelectorAll('.user-list:not(.no-autoinit)')) {
+      new UserList(publicUserListElement);
     }
   }
 
diff --git a/app/templates/_scripts.html.j2 b/app/templates/_scripts.html.j2
index 17b0b7c6..95406079 100644
--- a/app/templates/_scripts.html.j2
+++ b/app/templates/_scripts.html.j2
@@ -24,9 +24,9 @@
   'js/ResourceLists/JobList.js',
   'js/ResourceLists/JobInputList.js',
   'js/ResourceLists/JobResultList.js',
-  'js/ResourceLists/PublicUserList.js',
   'js/ResourceLists/SpacyNLPPipelineModelList.js',
   'js/ResourceLists/TesseractOCRPipelineModelList.js',
+  'js/ResourceLists/UserList.js',
   'js/ResourceLists/AdminUserList.js',
   'js/XMLtoObject.js'
 %}
-- 
GitLab