summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/sharebreadcrumbview.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src/sharebreadcrumbview.js')
-rw-r--r--apps/files_sharing/src/sharebreadcrumbview.js31
1 files changed, 3 insertions, 28 deletions
diff --git a/apps/files_sharing/src/sharebreadcrumbview.js b/apps/files_sharing/src/sharebreadcrumbview.js
index c712229b2ee..5c310501649 100644
--- a/apps/files_sharing/src/sharebreadcrumbview.js
+++ b/apps/files_sharing/src/sharebreadcrumbview.js
@@ -30,13 +30,6 @@
},
_dirInfo: undefined,
- /** @type OCA.Sharing.ShareTabView */
- _shareTab: undefined,
-
- initialize: function(options) {
- this._shareTab = options.shareTab
- },
-
render: function(data) {
this._dirInfo = data.dirInfo || null
@@ -72,28 +65,10 @@
dirInfo: self._dirInfo
})
})
- this._shareTab.on('sharesChanged', function(shareModel) {
- var shareTypes = []
- var shares = shareModel.getSharesWithCurrentItem()
- for (var i = 0; i < shares.length; i++) {
- if (shareTypes.indexOf(shares[i].share_type) === -1) {
- shareTypes.push(shares[i].share_type)
- }
- }
-
- if (shareModel.hasLinkShares()) {
- shareTypes.push(OC.Share.SHARE_TYPE_LINK)
- }
-
- // Since the dirInfo isn't updated we need to do this dark hackery
- self._dirInfo.shareTypes = shareTypes
-
- self.render({
- dirInfo: self._dirInfo
- })
- })
- OCA.Files.App.fileList.showDetailsView(fileInfoModel, 'sharing')
+ var path = fileInfoModel.attributes.path + '/' + fileInfoModel.attributes.name
+ OCA.Files.Sidebar.file = path
+ OCA.Files.Sidebar.activeTab = 'sharing'
}
})