Created
May 17, 2016 01:22
-
-
Save wegorich/3415a60ad41f142a06491ad03bb0ad5b to your computer and use it in GitHub Desktop.
4front best practice update loadDictionaries ....
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
updateDictionaries() { | |
let promise = this.api.getDictionaries(this.lastUpdatedDictionariesTimestamp).then(res => { | |
let result = res.result; | |
if (!this.lastUpdatedDictionariesTimestamp) { | |
.... | |
} else { | |
this.applyChangesToMap(this.someMap, result.someMapData); | |
.... | |
} | |
this.lastUpdatedDictionariesTimestamp = result.date; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment