fix: indentation in frontend handlers and restore dhcp auto-sync toast
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user