e1f19a1832
This should give more insights in case of an error during loading data from Ethereum and IPFS.
21 lines
554 B
JavaScript
21 lines
554 B
JavaScript
import injectService from 'ember-service/inject';
|
|
import Route from 'ember-route';
|
|
|
|
export default Route.extend({
|
|
kredits: injectService(),
|
|
|
|
beforeModel(transition) {
|
|
const kredits = this.get('kredits');
|
|
|
|
return kredits.setup().then(() => {
|
|
if (kredits.get('accountNeedsUnlock')) {
|
|
if (confirm('It looks like you have an Ethereum wallet available. Please unlock your account.')) {
|
|
transition.retry();
|
|
}
|
|
}
|
|
}).catch((error) => {
|
|
console.log('Error initializing Kredits', error);
|
|
});
|
|
},
|
|
});
|