Skip to content

Commit

Permalink
Merge pull request #3376 from owncloud/fix-extension-name
Browse files Browse the repository at this point in the history
Fix extension name for top bar on broken applications
  • Loading branch information
kulmann authored Apr 24, 2020
2 parents 5602dc2 + ab1adf2 commit 3ba2295
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/unreleased/3376
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Fix name of selected extension on broken apps

With the edge case of a broken app in config.json, the top bar is broken, because appInfo can't be loaded.
We made ocis-web more robust by just showing the extension id in the top bar when the appInfo is not available.

https://github.com/owncloud/phoenix/pull/3376
5 changes: 4 additions & 1 deletion src/components/Top-Bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ export default {
},
currentExtensionName() {
return this.$gettext(this.apps[this.currentExtension].name)
if (this.apps[this.currentExtension]) {
return this.$gettext(this.apps[this.currentExtension].name)
}
return this.currentExtension
}
},
methods: {
Expand Down

0 comments on commit 3ba2295

Please sign in to comment.