diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-10-06 21:00:10 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-10-14 18:16:48 +0200 |
commit | ce454e096b683821ee1bc7e088df576117392fff (patch) | |
tree | e9570e1819c3b5331d69c07c81efcc1f542192bf /apps/settings/src/components | |
parent | b076e3a17da1bb3f418af366f78e397fe3cc9b79 (diff) | |
download | nextcloud-server-ce454e096b683821ee1bc7e088df576117392fff.tar.gz nextcloud-server-ce454e096b683821ee1bc7e088df576117392fff.zip |
Catch uncaught (in promise)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/settings/src/components')
-rw-r--r-- | apps/settings/src/components/AppList/AppItem.vue | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/apps/settings/src/components/AppList/AppItem.vue b/apps/settings/src/components/AppList/AppItem.vue index 6b66163cfed..d8a195423db 100644 --- a/apps/settings/src/components/AppList/AppItem.vue +++ b/apps/settings/src/components/AppList/AppItem.vue @@ -148,14 +148,18 @@ export default { }, methods: { - showAppDetails(event) { + async showAppDetails(event) { if (event.currentTarget.tagName === 'INPUT' || event.currentTarget.tagName === 'A') { return } - this.$router.push({ - name: 'apps-details', - params: { category: this.category, id: this.app.id } - }) + try { + await this.$router.push({ + name: 'apps-details', + params: { category: this.category, id: this.app.id } + }) + } catch (e) { + // we already view this app + } }, prefix(prefix, content) { return prefix + '_' + content |