mirror of
https://github.com/tugsi/Filaman.git
synced 2026-11-12 18:50:38 +01:00
refactor Bambu credentials handling and improve input validation
This commit is contained in:
1 parent
d220479709
commit
3e8e19e8dc
4 files changed
+30
-14
No files matched your search
@@ -32,12 +32,6 @@
|
||||
.then(data => {
|
||||
if (data.healthy) {
|
||||
document.getElementById('bambuStatusMessage').innerText = 'Bambu Credentials saved!';
|
||||
// Erstelle und zeige den Reboot-Button
|
||||
const rebootBtn = document.createElement('button');
|
||||
rebootBtn.innerText = 'Reboot now';
|
||||
rebootBtn.className = 'reboot-button';
|
||||
rebootBtn.onclick = () => window.location.href = '/reboot';
|
||||
document.getElementById('bambuStatusMessage').appendChild(rebootBtn);
|
||||
} else {
|
||||
document.getElementById('bambuStatusMessage').innerText = 'Error while saving Bambu Credentials.';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user