Skip to content

Commit fc8ab56

Browse files
author
Julien Veyssier
committed
fix comments file action sidebar opening
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
1 parent 654fdb2 commit fc8ab56

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

apps/comments/js/comments-app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/comments/js/comments-app.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/comments/js/comments.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/comments/js/comments.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/comments/src/filesplugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
context.$file.find('.action-comment').tooltip('hide')
104104
// open sidebar in comments section
105105
OCA.Files.Sidebar.setActiveTab('comments')
106-
OCA.Files.Sidebar.open('/' + fileName)
106+
OCA.Files.Sidebar.open(context.dir + '/' + fileName)
107107
},
108108
})
109109

apps/comments/tests/js/filespluginSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('OCA.Comments.FilesPlugin tests', function() {
7676
expect(sidebarTabStub.calledOnce).toEqual(true);
7777
expect(sidebarTabStub.lastCall.args[0]).toEqual('comments');
7878
expect(sidebarStub.calledOnce).toEqual(true);
79-
expect(sidebarStub.lastCall.args[0]).toEqual('/One.txt');
79+
expect(sidebarStub.lastCall.args[0]).toEqual('/subdir/One.txt');
8080
});
8181
});
8282
describe('elementToFile', function() {

0 commit comments

Comments
 (0)