fix comments file action sidebar opening

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
pull/28198/head
Julien Veyssier 5 years ago
parent 654fdb27e8
commit 6bb95ee6c7
No known key found for this signature in database
GPG Key ID: 4141FEE162030638
  1. 2
      apps/comments/js/comments.js
  2. 2
      apps/comments/js/comments.js.map
  3. 2
      apps/comments/src/filesplugin.js
  4. 2
      apps/comments/tests/js/filespluginSpec.js

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…
Cancel
Save