mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-10-11 01:28:57 +02:00
fix errors shown after successful update with shortcut
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
1 parent
b97428106f
commit
94a2cf3695
4 files changed
+8
No files matched your search
@@ -150,6 +150,7 @@
|
||||
modalError = res.error;
|
||||
return;
|
||||
}
|
||||
modalError = '';
|
||||
addToast('Created API sender', 'Success');
|
||||
closeCreateModal();
|
||||
refreshConfigurations();
|
||||
@@ -166,6 +167,7 @@
|
||||
modalError = res.error;
|
||||
throw res.error;
|
||||
}
|
||||
modalError = '';
|
||||
addToast(saveOnly ? 'API sender saved' : 'Updated API sender', 'Success');
|
||||
if (!saveOnly) {
|
||||
closeEditModal();
|
||||
|
||||
@@ -298,6 +298,7 @@
|
||||
companyID: contextCompanyID
|
||||
});
|
||||
if (res.success) {
|
||||
modalError = '';
|
||||
addToast('Domain created', 'Success');
|
||||
closeAllModals();
|
||||
refreshDomains();
|
||||
@@ -355,6 +356,7 @@
|
||||
modalError = res.error;
|
||||
return;
|
||||
}
|
||||
modalError = '';
|
||||
addToast(saveOnly ? 'Domain saved' : 'Domain updated', 'Success');
|
||||
if (!saveOnly) {
|
||||
closeAllModals();
|
||||
|
||||
@@ -164,6 +164,7 @@
|
||||
formError = res.error;
|
||||
return;
|
||||
}
|
||||
formError = '';
|
||||
addToast('Page created', 'Success');
|
||||
closeModal();
|
||||
refreshPages();
|
||||
@@ -185,6 +186,7 @@
|
||||
formError = res.error;
|
||||
return;
|
||||
}
|
||||
formError = '';
|
||||
addToast(saveOnly ? 'Page saved' : 'Page updated', 'Success');
|
||||
if (!saveOnly) {
|
||||
closeModal();
|
||||
|
||||
@@ -226,6 +226,7 @@ portal.example.com:
|
||||
formError = res.error;
|
||||
return;
|
||||
}
|
||||
formError = '';
|
||||
addToast('Proxy created', 'Success');
|
||||
closeModal();
|
||||
refreshProxies();
|
||||
@@ -249,6 +250,7 @@ portal.example.com:
|
||||
formError = res.error;
|
||||
return;
|
||||
}
|
||||
formError = '';
|
||||
addToast(saveOnly ? 'Proxy saved' : 'Proxy updated', 'Success');
|
||||
if (!saveOnly) {
|
||||
closeModal();
|
||||
|
||||
Reference in new issue
Block a user