summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/share.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-10-28 17:43:36 +0100
committerVincent Petry <pvince81@owncloud.com>2015-10-29 12:59:51 +0100
commit9c9158e6b78c69835cb7280810819fb2cd6f84f7 (patch)
tree8045f5e8fb80aa377c68d7ba7f0ac498b2475c72 /apps/files_sharing/js/share.js
parent92e63a802c9324ccfcd716bb0461f5b7cc153549 (diff)
downloadnextcloud-server-9c9158e6b78c69835cb7280810819fb2cd6f84f7.tar.gz
nextcloud-server-9c9158e6b78c69835cb7280810819fb2cd6f84f7.zip
Fix icon update to be more consistent
Makes the details bar show the same icon as in the list.
Diffstat (limited to 'apps/files_sharing/js/share.js')
-rw-r--r--apps/files_sharing/js/share.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index 30a803f3207..63225a0d8ec 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -130,6 +130,13 @@
// remove icon, if applicable
OC.Share.markFileAsShared($tr, false, false);
}
+ var newIcon = $tr.attr('data-icon');
+ // in case markFileAsShared decided to change the icon,
+ // we need to modify the model
+ // (FIXME: yes, this is hacky)
+ if (fileInfoModel.get('icon') !== newIcon) {
+ fileInfoModel.set('icon', newIcon);
+ }
});
fileList.registerTabView(shareTab);
},