diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-10-10 11:26:15 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-10-29 13:20:07 +0100 |
commit | d88b93c919b6bf7db1853ec91a68996e07a75ba4 (patch) | |
tree | 7a772701db1d79858530dad5ff786baa780b5ce1 /apps/files_sharing | |
parent | 1c13c52acffeac59b0ef5d156a9a5bc36e611619 (diff) | |
download | nextcloud-server-d88b93c919b6bf7db1853ec91a68996e07a75ba4.tar.gz nextcloud-server-d88b93c919b6bf7db1853ec91a68996e07a75ba4.zip |
Add LoadSidebar event
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/src/share.js | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/apps/files_sharing/src/share.js b/apps/files_sharing/src/share.js index 46e46e37552..c7ef39897d0 100644 --- a/apps/files_sharing/src/share.js +++ b/apps/files_sharing/src/share.js @@ -209,37 +209,8 @@ } }) + // register share breadcrumbs component var shareTab = new OCA.Sharing.ShareTabView('sharing', {order: -20}) - // // detect changes and change the matching list entry - // shareTab.on('sharesChanged', function(shareModel) { - // var fileInfoModel = shareModel.fileInfoModel - // var $tr = fileList.findFileEl(fileInfoModel.get('name')) - - // // We count email shares as link share - // var hasLinkShares = shareModel.hasLinkShares(); - // shareModel.get('shares').forEach(function (share) { - // if (share.share_type === OC.Share.SHARE_TYPE_EMAIL) { - // hasLinkShares = true; - // } - // }) - - // OCA.Sharing.Util._updateFileListDataAttributes(fileList, $tr, shareModel); - // if (!OCA.Sharing.Util._updateFileActionIcon($tr, shareModel.hasUserShares(), hasLinkShares)) { - // // remove icon, if applicable - // OC.Share.markFileAsShared($tr, false, false) - // } - - // // FIXME: this is too convoluted. We need to get rid of the above updates - // // and only ever update the model and let the events take care of rerendering - // fileInfoModel.set({ - // shareTypes: shareModel.getShareTypes(), - // // in case markFileAsShared decided to change the icon, - // // we need to modify the model - // // (FIXME: yes, this is hacky) - // icon: $tr.attr('data-icon') - // }) - // }) - // fileList.registerTabView(shareTab) var breadCrumbSharingDetailView = new OCA.Sharing.ShareBreadCrumbView({ shareTab: shareTab }) fileList.registerBreadCrumbDetailView(breadCrumbSharingDetailView) |