Cleanup old log and fix share icon sidebar opening in breadcru… (#18425)

Cleanup old log and fix share icon sidebar opening in breadcrumbs
This commit is contained in:
John Molakvoæ 2019-12-16 14:07:38 +01:00 committed by GitHub
commit 29f6f15cf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 6 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

@ -254,7 +254,6 @@
* @returns {boolean} true if the icon was set, false otherwise
*/
_updateFileActionIcon: function($tr, hasUserShares, hasLinkShares) {
console.info('object');
// if the statuses are loaded already, use them for the icon
// (needed when scrolling to the next page)
if (hasUserShares || hasLinkShares || $tr.attr('data-share-recipient-data') || $tr.attr('data-share-owner')) {

View File

@ -67,8 +67,8 @@
})
var path = fileInfoModel.attributes.path + '/' + fileInfoModel.attributes.name
OCA.Files.Sidebar.file = path
OCA.Files.Sidebar.activeTab = 'sharing'
OCA.Files.Sidebar.open(path)
OCA.Files.Sidebar.setActiveTab('sharing')
}
})