fix comments file action sidebar opening

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
This commit is contained in:
Julien Veyssier 2021-07-28 10:15:23 +02:00
parent 654fdb27e8
commit 6bb95ee6c7
No known key found for this signature in database
GPG key ID: 4141FEE162030638
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

View file

@ -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)
},
})

View file

@ -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() {