fix(state and toast):

This commit is contained in:
Alexander Myasoedov
2025-03-13 18:12:48 +02:00
parent 37a6e7a5bc
commit 5d712ebce4
+5
View File
@@ -171,6 +171,7 @@ var app = new Vue({
this.integrationVerified = false; this.integrationVerified = false;
this.showResetConfirmation = false; this.showResetConfirmation = false;
this.enableMultiStepAttack = false; this.enableMultiStepAttack = false;
this.showToast('All settings have been reset to default', 'info');
}, },
confirmResetState() { confirmResetState() {
this.showResetConfirmation = true; this.showResetConfirmation = true;
@@ -257,6 +258,7 @@ var app = new Vue({
this.errorMsg = ''; this.errorMsg = '';
this.okMsg = ''; this.okMsg = '';
this.integrationVerified = false; this.integrationVerified = false;
this.showToast(`Config ${index + 1} selected`, 'info');
}, },
toggleModules() { toggleModules() {
this.showModules = !this.showModules; this.showModules = !this.showModules;
@@ -344,6 +346,7 @@ var app = new Vue({
return return
} }
console.log('New row'); console.log('New row');
this.showToast('New module', 'success');
let payload = { let payload = {
table: this.mainTable, table: this.mainTable,
}; };
@@ -454,6 +457,8 @@ var app = new Vue({
} }
}); });
} }
this.scanRunning = false;
this.showToast('Scan finished successfully', 'success');
this.saveStateToLocalStorage(); this.saveStateToLocalStorage();
} }