aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/sharetabview.js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-11-08 16:23:47 +0100
committerGitHub <noreply@github.com>2016-11-08 16:23:47 +0100
commit5f15020b9bcc4732d81176f2c8380bfdbd16a051 (patch)
tree5d69308879f296e65beff6e78d1873822e1580bc /apps/files_sharing/js/sharetabview.js
parentc591e29eb356ad2f5a0b7363fda7f08baff58e13 (diff)
parent742ece8b7a054ce16152d721f91936d04b5d22c2 (diff)
downloadnextcloud-server-5f15020b9bcc4732d81176f2c8380bfdbd16a051.tar.gz
nextcloud-server-5f15020b9bcc4732d81176f2c8380bfdbd16a051.zip
Merge pull request #1618 from nextcloud/show-folder-shared-status
make it possible to share the current folder
Diffstat (limited to 'apps/files_sharing/js/sharetabview.js')
-rw-r--r--apps/files_sharing/js/sharetabview.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/js/sharetabview.js b/apps/files_sharing/js/sharetabview.js
index 2c7070aa3d5..7bb1f1229d0 100644
--- a/apps/files_sharing/js/sharetabview.js
+++ b/apps/files_sharing/js/sharetabview.js
@@ -50,6 +50,10 @@
if (this.model) {
this.$el.html(this.template());
+ if (_.isUndefined(this.model.get('sharePermissions'))) {
+ this.model.set('sharePermissions', OCA.Sharing.Util.getSharePermissions(this.model.attributes));
+ }
+
// TODO: the model should read these directly off the passed fileInfoModel
var attributes = {
itemType: this.model.isDirectory() ? 'folder' : 'file',