Skip to content
Snippets Groups Projects
Merged Timothee P requested to merge redmine-issues/11926 into develop
Files
2
+ 4
1
@@ -92,7 +92,10 @@ export default new Vuex.Store({
},
DISPLAY_MESSAGE(state, comment) {
state.messages = [{ comment }, ...state.messages];
document.getElementById("content").scrollIntoView({ block: "start", inline: "nearest" });
document.getElementById("messages").scrollIntoView({ block: "start", inline: "nearest" });
setTimeout(() => {
state.messages = [];
}, 3000);
},
CLEAR_MESSAGES(state) {
state.messages = [];
Loading