diff --git a/application/views/system/login/loginAs.php b/application/views/system/login/loginAs.php index 46304311c..fcebd6a00 100644 --- a/application/views/system/login/loginAs.php +++ b/application/views/system/login/loginAs.php @@ -22,11 +22,9 @@ $includesArray = array( 'bootstrap5' => true, 'fontawesome6' => true, 'vue3' => true, - 'filtercomponent' => true, - 'navigationcomponent' => true, - 'tabulator5' => true, 'primevue3' => true, 'phrases' => array('uid', 'global'), + 'navigationcomponent' => true, 'customJSModules' => array('public/js/LoginAs.js'), ); diff --git a/public/js/LoginAs.js b/public/js/LoginAs.js index 2ce7e152b..a49b5b397 100644 --- a/public/js/LoginAs.js +++ b/public/js/LoginAs.js @@ -49,7 +49,7 @@ const loginAsApp = Vue.createApp({ location.reload(); }) .catch((error) => { - console.error(error); + console.error(error); }); } }, @@ -60,19 +60,19 @@ const loginAsApp = Vue.createApp({ location.reload(); }) .catch((error) => { - console.error(error); + console.error(error); }); }, searchUser: function(event) { if (event.query.length >= 3) { this.$api - .call(ApiLogin.searchUser(event.query)) - .then(result => { - this.filteredUsers = result.data.retval; - }) + .call(ApiLogin.searchUser(event.query)) + .then(result => { + this.filteredUsers = result.data.retval; + }) .catch((error) => { - console.error(error); + console.error(error); }); } } @@ -81,9 +81,9 @@ const loginAsApp = Vue.createApp({ this.$api .call(ApiLogin.whoAmI()) .then((response) => { - // If property data exists - if (Object.hasOwn(response, 'data')) - { + // If property data exists + if (Object.hasOwn(response, 'data')) + { if (response.data != null && Object.hasOwn(response.data, 'person_id')) { this.person_id = response.data.person_id; @@ -94,48 +94,48 @@ const loginAsApp = Vue.createApp({ else { this.person_id = 'Not logged'; - this.username = 'Not logged'; - this.surname = 'Not logged'; - this.name = 'Not logged'; + this.username = 'Not logged'; + this.surname = 'Not logged'; + this.name = 'Not logged'; } - } + } }) .catch((error) => { - console.error(error); + console.error(error); }); }, template: ` -
+
Who am I?
- - -
-
+ + +
+
- - -
-
+ + +
+
- - -
-
+ + + +
- - -
-
+ + + +
@@ -146,9 +146,9 @@ const loginAsApp = Vue.createApp({
- -
-
+ + +
@@ -161,8 +161,8 @@ loginAsApp. use(PluginsPhrasen). use(primevue.config.default, { zIndex: { - overlay: 1100 - } + overlay: 1100 + } }). mount('#main');