This commit is contained in:
2020-03-02 23:55:05 +00:00
parent b44ffdc49b
commit 6465f04d9e
5 changed files with 36 additions and 20 deletions

View File

@@ -235,6 +235,14 @@ export default {
};
},
created() {
//detect version change, wipe persisted form settings if so
//get current version now
var currentVersion = window.$gz.clientInfo.version;
if (currentVersion != window.$gz.store.state.lastClientVersion) {
window.$gz.store.commit("setLastClientVersion", currentVersion);
window.$gz.store.commit("clearAllFormSettings");
}
//////////////////////////////////
// WIRE UP
// EVENT HANDLERS ON GZEVENTBUS