diff options
author | dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> | 2019-11-13 12:05:10 +0000 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-12-19 11:55:33 +0100 |
commit | ec01e0a790448fff38364f629a4de4edb5d465bf (patch) | |
tree | 8fb5369e3d6f9f805025802e12feaa4dfaef1e03 /apps/files_sharing/src/sharebreadcrumbview.js | |
parent | 5d9fd7ba0cced84f1d07627b0860ac5490de164d (diff) | |
download | nextcloud-server-ec01e0a790448fff38364f629a4de4edb5d465bf.tar.gz nextcloud-server-ec01e0a790448fff38364f629a4de4edb5d465bf.zip |
Bump eslint-config-nextcloud from 0.0.6 to 0.1.0
Bumps [eslint-config-nextcloud](https://github.com/nextcloud/eslint-config-nextcloud) from 0.0.6 to 0.1.0.
- [Release notes](https://github.com/nextcloud/eslint-config-nextcloud/releases)
- [Commits](https://github.com/nextcloud/eslint-config-nextcloud/compare/v0.0.6...v0.1.0)
Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files_sharing/src/sharebreadcrumbview.js')
-rw-r--r-- | apps/files_sharing/src/sharebreadcrumbview.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/files_sharing/src/sharebreadcrumbview.js b/apps/files_sharing/src/sharebreadcrumbview.js index d3b56ff853a..dadc0a48fb8 100644 --- a/apps/files_sharing/src/sharebreadcrumbview.js +++ b/apps/files_sharing/src/sharebreadcrumbview.js @@ -23,10 +23,10 @@ (function() { 'use strict' - var BreadCrumbView = OC.Backbone.View.extend({ + const BreadCrumbView = OC.Backbone.View.extend({ tagName: 'span', events: { - click: '_onClick' + click: '_onClick', }, _dirInfo: undefined, @@ -34,7 +34,7 @@ this._dirInfo = data.dirInfo || null if (this._dirInfo !== null && (this._dirInfo.path !== '/' || this._dirInfo.name !== '')) { - var isShared = data.dirInfo && data.dirInfo.shareTypes && data.dirInfo.shareTypes.length > 0 + const isShared = data.dirInfo && data.dirInfo.shareTypes && data.dirInfo.shareTypes.length > 0 this.$el.removeClass('shared icon-public icon-shared') if (isShared) { this.$el.addClass('shared') @@ -58,18 +58,18 @@ _onClick: function(e) { e.preventDefault() - var fileInfoModel = new OCA.Files.FileInfoModel(this._dirInfo) - var self = this + const fileInfoModel = new OCA.Files.FileInfoModel(this._dirInfo) + const self = this fileInfoModel.on('change', function() { self.render({ - dirInfo: self._dirInfo + dirInfo: self._dirInfo, }) }) - var path = fileInfoModel.attributes.path + '/' + fileInfoModel.attributes.name + const path = fileInfoModel.attributes.path + '/' + fileInfoModel.attributes.name OCA.Files.Sidebar.open(path) OCA.Files.Sidebar.setActiveTab('sharing') - } + }, }) OCA.Sharing.ShareBreadCrumbView = BreadCrumbView |