Fix dashboard hanging when loading app from contributor URL
Loading the app from /dashboard/contributors/:id is failing, because the contributors are loaded later. This fetches the requested contributor separately when launching the app from a contributor profile URL.
This commit is contained in:
@@ -274,6 +274,12 @@ export default Service.extend({
|
||||
});
|
||||
},
|
||||
|
||||
async fetchContributor (id) {
|
||||
console.debug(`[kredits] Fetching contributor from the network`);
|
||||
return this.kredits.Contributor.getById(id)
|
||||
.then(data => this.loadContributorFromData(data))
|
||||
},
|
||||
|
||||
fetchContributors () {
|
||||
console.debug(`[kredits] Fetching all contributors from the network`);
|
||||
return this.kredits.Contributor.all()
|
||||
|
||||
Reference in New Issue
Block a user