Skip to content

Commit

Permalink
Fix extension name for top bar
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Apr 24, 2020
1 parent 3b30c3c commit ab1adf2
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 ab1adf2

Please sign in to comment.