added progress percentage for events fetching #8

Closed
Freezy wants to merge 8 commits from refs/pull/8/head into staging
2 changed files with 3 additions and 3 deletions
Showing only changes of commit ce9ea1f580 - Show all commits

View File

@ -341,7 +341,7 @@ export default {
if (currency !== this.nativeCurrency) {
this.$store.dispatch('application/setDefaultEthToReceive', { currency })
}
this.$store.dispatch('loading/updateProgress', { progress: 100 })
this.$store.dispatch('loading/updateProgress', { progress: -1 })
this.depositsPast = Number(depositsPast) <= 0 ? 0 : depositsPast
this.depositTxHash = txHash
this.depositTimestamp = timestamp

View File

@ -1,7 +1,7 @@
export const state = () => {
return {
message: '',
progress: '',
progress: -1,
enabled: false,
type: null
}
@ -19,7 +19,7 @@ export const state = () => {
DISABLE(state) {
state.message = ''
state.enabled = false
state.progress = ''
state.progress = -1
state.type = null
}
}