diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-29 15:40:15 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-29 15:40:15 +0100 |
commit | 774d069ff08e21ecdac1fceec80e162f5917105e (patch) | |
tree | 46344b8906afe533e629d46d3de7107a5629de94 /apps/files_sharing/js | |
parent | 1ce911d2f994d105660598ce518b02238502258f (diff) | |
parent | 9c9158e6b78c69835cb7280810819fb2cd6f84f7 (diff) | |
download | nextcloud-server-774d069ff08e21ecdac1fceec80e162f5917105e.tar.gz nextcloud-server-774d069ff08e21ecdac1fceec80e162f5917105e.zip |
Merge pull request #20122 from owncloud/files-consolidateiconupdate
Fix icon update to be more consistent
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r-- | apps/files_sharing/js/share.js | 7 |
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); }, |