From ab1adf24fdda62c96978f719e5533972404dca2f Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Fri, 24 Apr 2020 10:18:05 +0200 Subject: [PATCH] Fix extension name for top bar --- changelog/unreleased/3376 | 6 ++++++ src/components/Top-Bar.vue | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/3376 diff --git a/changelog/unreleased/3376 b/changelog/unreleased/3376 new file mode 100644 index 00000000000..d34c2e257f1 --- /dev/null +++ b/changelog/unreleased/3376 @@ -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 diff --git a/src/components/Top-Bar.vue b/src/components/Top-Bar.vue index 8a4ff0da7ef..bfacbaa76ef 100644 --- a/src/components/Top-Bar.vue +++ b/src/components/Top-Bar.vue @@ -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: {