diff options
Diffstat (limited to 'javascript/app/components')
-rw-r--r-- | javascript/app/components/identifier-info.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/javascript/app/components/identifier-info.js b/javascript/app/components/identifier-info.js index 537697a..bb859be 100644 --- a/javascript/app/components/identifier-info.js +++ b/javascript/app/components/identifier-info.js @@ -54,8 +54,19 @@ export default Ember.Component.extend({ Ember.run.next(this,() => { if(currentIdentifier === this.get('identifierInfo')) { this.set('downloadedDocumentation',definitionSite.documentation); - }}); - }); + }}) + }).catch(() => { + this.get('store').loadHoogleDocs(packageId, + locationInfo.moduleName, + locationInfo.entity, + locationInfo.name) + .then((hoogleDocs) => { + Ember.run.next(this,() => { + if(currentIdentifier === this.get('identifierInfo')) { + this.set('downloadedDocumentation',hoogleDocs); + }}); + }); + });; } } }) |