Iterated on features UI

This commit is contained in:
Stefan Zermatten
2019-04-03 16:50:22 +02:00
parent 021a53ef36
commit b35e08b9b4
13 changed files with 125 additions and 131 deletions

View File

@@ -20,6 +20,19 @@ const dialogStackStore = {
});
updateHistory();
},
replaceDialog(stat, {component, data, elementId, callback}){
const _id = Random.id();
if (!state.dialogs.length){
throw new Meteor.Error("can't replace dialog if no dialogs are open");
}
state.dialogs.$set(0, {
_id,
component,
data,
elementId,
callback,
});
},
popDialogStackMutation (state, result){
const dialog = state.dialogs.pop();
state.currentResult = null;