Compare commits
4 Commits
bc9976d5c6
...
2e5a7be4dd
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e5a7be4dd | |||
| ef12b275f5 | |||
| 782055c4fd | |||
| ab74164608 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "espid2sensor",
|
"name": "espid2sensor",
|
||||||
"version": "1.5.0",
|
"version": "1.6.3",
|
||||||
"date": "2026-08-07",
|
"date": "2026-08-07",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Kleine Webapp ESP-ID <-> Sensornummer, speichern in MongoDB",
|
"description": "Kleine Webapp ESP-ID <-> Sensornummer, speichern in MongoDB",
|
||||||
|
|||||||
@@ -585,7 +585,15 @@ function showModal(message, showCancelButton, callback) {
|
|||||||
tabInput.addEventListener('click', () => showTab('input'))
|
tabInput.addEventListener('click', () => showTab('input'))
|
||||||
tabList.addEventListener('click', () => showTab('list'))
|
tabList.addEventListener('click', () => showTab('list'))
|
||||||
const tabUser = document.getElementById('tabUser');
|
const tabUser = document.getElementById('tabUser');
|
||||||
if (tabUser) tabUser.addEventListener('click', () => { showTab('user'); loadUsers(); })
|
if (tabUser) tabUser.addEventListener('click', () => {
|
||||||
|
showTab('user');
|
||||||
|
clearUserForm();
|
||||||
|
const userResult = document.getElementById('userResult');
|
||||||
|
if (userResult) userResult.textContent = '';
|
||||||
|
const usersResult = document.getElementById('usersResult');
|
||||||
|
if (usersResult) usersResult.textContent = '';
|
||||||
|
loadUsers();
|
||||||
|
})
|
||||||
|
|
||||||
loadEntries();
|
loadEntries();
|
||||||
window.loadUsers = loadUsers;
|
window.loadUsers = loadUsers;
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
*, *::before, *::after {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
/* Tab Navigation */
|
/* Tab Navigation */
|
||||||
.tabs {
|
.tabs {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -26,6 +30,11 @@
|
|||||||
margin-left: 50px;
|
margin-left: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#logoutBtn {
|
||||||
|
margin-left: auto;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* Modal Fehlerfenster */
|
/* Modal Fehlerfenster */
|
||||||
.custom-modal-popup {
|
.custom-modal-popup {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ html(lang="de")
|
|||||||
button.tab-btn#tabProfile(type="button" onclick="showTab('profile')") Profil
|
button.tab-btn#tabProfile(type="button" onclick="showTab('profile')") Profil
|
||||||
if isAdmin
|
if isAdmin
|
||||||
button.tab-btn#tabUser(type="button" onclick="showTab('user')") User
|
button.tab-btn#tabUser(type="button" onclick="showTab('user')") User
|
||||||
|
a.tab-btn#logoutBtn(href="/logout") Logout
|
||||||
|
|
||||||
// Eingabe-Tab
|
// Eingabe-Tab
|
||||||
div#tabInputContent.tab-content
|
div#tabInputContent.tab-content
|
||||||
|
|||||||
Reference in New Issue
Block a user