Error Message for no qrcodes selected.

This commit is contained in:
0xRenegade
2022-09-24 15:40:56 -05:00
parent 9cf354910b
commit 8cb8e36114
5 changed files with 24 additions and 0 deletions
+4
View File
@@ -10,4 +10,8 @@
.bulk-action-wrapper {
padding: 10px 0;
}
#err-msg {
display: none;
color: red;
}
+10
View File
@@ -467,9 +467,19 @@
success: (res) => {
if (res.status == 200) {
window.location.href = res.data;
$('#err-msg').css('display', 'none');
}
if (res.status == 400) {
$('#err-msg').empty();
$('#err-msg').append('<i class="fas fa-exclamation-circle"></i> ' + res.data);
$('#err-msg').css('display', 'block');
}
},
error: (err) => {
$('#err-msg').empty();
$('#err-msg').append('<i class="fas fa-exclamation-circle"></i> ' + res.data);
$('#err-msg').css('display', 'block');
console.log(err);
}
});