aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments/src/filesplugin.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-10-16 22:50:01 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-10-20 13:58:07 +0200
commitafa737652247365838832837ae4ce20bca039ad9 (patch)
tree60ac835aec72cab0756ef207554dba984f37f05d /apps/comments/src/filesplugin.js
parente7f5516b4d04c16ed2c12dcc9c9c5f34d9f1f73b (diff)
downloadnextcloud-server-afa737652247365838832837ae4ce20bca039ad9.tar.gz
nextcloud-server-afa737652247365838832837ae4ce20bca039ad9.zip
Cleanup old comments tab
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/comments/src/filesplugin.js')
-rw-r--r--apps/comments/src/filesplugin.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/comments/src/filesplugin.js b/apps/comments/src/filesplugin.js
index 384f769c233..dc06cadcd84 100644
--- a/apps/comments/src/filesplugin.js
+++ b/apps/comments/src/filesplugin.js
@@ -45,8 +45,6 @@
return
}
- fileList.registerTabView(new OCA.Comments.CommentsTabView('commentsTabView'))
-
const oldGetWebdavProperties = fileList._getWebdavProperties
fileList._getWebdavProperties = function() {
const props = oldGetWebdavProperties.apply(this, arguments)
@@ -104,7 +102,8 @@
actionHandler(fileName, context) {
context.$file.find('.action-comment').tooltip('hide')
// open sidebar in comments section
- context.fileList.showDetailsView(fileName, 'comments')
+ OCA.Files.Sidebar.setActiveTab('comments')
+ OCA.Files.Sidebar.open('/' + fileName)
},
})