Cancel fetch up on destroy
This commit is contained in:
parent
ec23ca0ebd
commit
364b268b02
@ -164,11 +164,9 @@ export default {
|
||||
console.log(identities)
|
||||
let promise = Promise.resolve()
|
||||
identities.forEach(item => {
|
||||
if (this.islive) {
|
||||
promise = promise.then(() => new Promise(resolve => {
|
||||
this.avatar(item, resolve)
|
||||
}))
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
@ -201,6 +199,7 @@ export default {
|
||||
return 'primary'
|
||||
},
|
||||
avatar(identity, resolve) {
|
||||
if (this.islive) {
|
||||
keybase(identity).then(d => {
|
||||
resolve()
|
||||
console.log(identity)
|
||||
@ -214,6 +213,7 @@ export default {
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user