Skip to content

Commit

Permalink
308 Contact us alerts timeout set. (CodeForPoznan#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislawK authored and Marce1ina committed Jan 5, 2022
1 parent b1566d9 commit 7e1e190
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/store/modules/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ export default {
mutations: {
setWasSent(state) {
state.msgWasSent = true;
setTimeout(() => (state.msgWasSent = false), 5000);
},
setWasntSent(state) {
state.msgWasSent = false;
},
raiseMsgError(state) {
state.msgError = true;
setTimeout(() => (state.msgError = false), 5000);
},
clearError(state) {
state.msgError = false;
Expand Down

0 comments on commit 7e1e190

Please sign in to comment.