diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-09-15 15:29:30 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-09-16 07:23:29 +0200 |
commit | 996639f4fbd4107851efc11ee34b24cead43e790 (patch) | |
tree | 9351ddf424d608b71ecf50715105b7af1131487d /apps/files_sharing/js | |
parent | 886f1ed660e91edb8f370cf711ed395fdff7dc30 (diff) | |
download | nextcloud-server-996639f4fbd4107851efc11ee34b24cead43e790.tar.gz nextcloud-server-996639f4fbd4107851efc11ee34b24cead43e790.zip |
More unit tests for share dialog
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r-- | apps/files_sharing/js/sharetabview.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/files_sharing/js/sharetabview.js b/apps/files_sharing/js/sharetabview.js index 68288500ae0..e24320604fb 100644 --- a/apps/files_sharing/js/sharetabview.js +++ b/apps/files_sharing/js/sharetabview.js @@ -11,7 +11,6 @@ (function() { var TEMPLATE = '<div>' + - '<ul>{{#if owner}}<li>Owner: {{owner}}</li>{{/if}}</ul>' + '<div class="dialogContainer"></div>' + '</div>'; @@ -47,13 +46,7 @@ } if (this.model) { - var owner = this.model.get('shareOwner'); - if (owner === OC.currentUser) { - owner = null; - } - this.$el.html(this.template({ - owner: owner - })); + this.$el.html(this.template()); // TODO: the model should read these directly off the passed fileInfoModel var attributes = { |