Got basic dialog working, no morph animation yet

This commit is contained in:
Stefan Zermatten
2018-10-09 16:24:43 +02:00
parent 89820780b5
commit dc8185df98
18 changed files with 318 additions and 101 deletions

View File

@@ -0,0 +1,11 @@
import store from "/imports/ui/vuexStore.js";
if (window){
window.onpopstate = function(event){
let state = event.state;
let numDialogs = store.state.dialogStack.dialogs.length;
if (_.isFinite(state.openDialogs) && numDialogs > state.openDialogs){
store.commit("popDialogStackMutation");
}
};
}