Fix modal appearing when voter done voting
- add code to close the bootstrap modal after the page render
This commit is contained in:
@@ -127,6 +127,7 @@ export default {
|
|||||||
if (vm.util.showResult(response, 'success')) {
|
if (vm.util.showResult(response, 'success')) {
|
||||||
vm.data.result = response.data.result;
|
vm.data.result = response.data.result;
|
||||||
vm.$router.push({ name: 'Voter Home' });
|
vm.$router.push({ name: 'Voter Home' });
|
||||||
|
$('.modal').modal('hide');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
|
|||||||
Reference in New Issue
Block a user