mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
fix comments file action sidebar opening
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
This commit is contained in:
parent
654fdb27e8
commit
6bb95ee6c7
4 changed files with 4 additions and 4 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -103,7 +103,7 @@
|
|||
context.$file.find('.action-comment').tooltip('hide')
|
||||
// open sidebar in comments section
|
||||
OCA.Files.Sidebar.setActiveTab('comments')
|
||||
OCA.Files.Sidebar.open('/' + fileName)
|
||||
OCA.Files.Sidebar.open(context.dir + '/' + fileName)
|
||||
},
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ describe('OCA.Comments.FilesPlugin tests', function() {
|
|||
expect(sidebarTabStub.calledOnce).toEqual(true);
|
||||
expect(sidebarTabStub.lastCall.args[0]).toEqual('comments');
|
||||
expect(sidebarStub.calledOnce).toEqual(true);
|
||||
expect(sidebarStub.lastCall.args[0]).toEqual('/One.txt');
|
||||
expect(sidebarStub.lastCall.args[0]).toEqual('/subdir/One.txt');
|
||||
});
|
||||
});
|
||||
describe('elementToFile', function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue