fix: indentation in frontend handlers and restore dhcp auto-sync toast

This commit is contained in:
2026-07-28 19:32:17 +00:00
parent 8ae60ab8cf
commit 6d30f1387e
3 changed files with 17 additions and 12 deletions
+4 -4
View File
@@ -136,8 +136,8 @@ function addCredentialModal() {
closeModal();
loadCredentials();
} catch (e) {
const msg = typeof e === 'string' ? e : (e.message || 'Registration failed');
if (!msg.toLowerCase().includes('cancelled')) {
const msg = typeof e === 'string' ? e : (e.message || 'Registration failed');
if (!msg.toLowerCase().includes('cancelled')) {
toast(msg, 'error');
}
} finally {
@@ -188,8 +188,8 @@ function confirmRemove(credentialId, credentialName) {
closeModal();
loadCredentials();
} catch (e) {
const msg = typeof e === 'string' ? e : (e.message || 'Removal failed');
toast(msg, 'error');
const msg = typeof e === 'string' ? e : (e.message || 'Removal failed');
toast(msg, 'error');
} finally {
setModalProcessing(false);
refreshModals();