summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2015-08-13 17:17:10 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2015-08-13 17:17:10 +0200
commit4e53b5922d9b3727502a13eb0c36844e69f498e3 (patch)
tree3e186d3743db98a0e81b3ae1993960b17a806830 /apps/files_sharing
parentaf7ffe5492cd9d7254f16f09959c12fffbdc3d46 (diff)
parentc964eff17b1a7feeab794f6035a7beff8143ac85 (diff)
downloadnextcloud-server-4e53b5922d9b3727502a13eb0c36844e69f498e3.tar.gz
nextcloud-server-4e53b5922d9b3727502a13eb0c36844e69f498e3.zip
Merge pull request #18178 from owncloud/files-sidebar-actions
Sidebar file actions
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/js/sharetabview.js27
1 files changed, 6 insertions, 21 deletions
diff --git a/apps/files_sharing/js/sharetabview.js b/apps/files_sharing/js/sharetabview.js
index e02de923751..5f4a21a4a57 100644
--- a/apps/files_sharing/js/sharetabview.js
+++ b/apps/files_sharing/js/sharetabview.js
@@ -13,29 +13,14 @@
'<div>Owner: {{owner}}';
/**
- * @class OCA.Sharing.ShareTabView
- * @classdesc
- *
- * Displays sharing information
- *
- */
- var ShareTabView = function(id) {
- this.initialize(id);
- };
- /**
* @memberof OCA.Sharing
*/
- ShareTabView.prototype = _.extend({}, OCA.Files.DetailTabView.prototype,
+ var ShareTabView = OCA.Files.DetailTabView.extend(
/** @lends OCA.Sharing.ShareTabView.prototype */ {
- _template: null,
+ id: 'shareTabView',
+ className: 'tab shareTabView',
- /**
- * Initialize the details view
- */
- initialize: function() {
- OCA.Files.DetailTabView.prototype.initialize.apply(this, arguments);
- this.$el.addClass('shareTabView');
- },
+ _template: null,
getLabel: function() {
return t('files_sharing', 'Sharing');
@@ -51,9 +36,9 @@
this._template = Handlebars.compile(TEMPLATE);
}
- if (this._fileInfo) {
+ if (this.model) {
this.$el.append(this._template({
- owner: this._fileInfo.shareOwner || OC.currentUser
+ owner: this.model.get('shareOwner') || OC.currentUser
}));
} else {