summaryrefslogtreecommitdiffstats
path: root/core/js/shareitemmodel.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-09-28 15:57:57 +0200
committerVincent Petry <pvince81@owncloud.com>2015-09-28 15:57:57 +0200
commita823a79f12dde467a48b0366821a505ed66ecd66 (patch)
tree55e01ccea6551b6abad2867363ce6a512239fae8 /core/js/shareitemmodel.js
parentd68079f93210f8fe0b5327e686497db97fde6a3e (diff)
downloadnextcloud-server-a823a79f12dde467a48b0366821a505ed66ecd66.tar.gz
nextcloud-server-a823a79f12dde467a48b0366821a505ed66ecd66.zip
Show loading spinner for first fetch of shares
Whenever the sidebar first loads shares, show a spinner instead of an empty content
Diffstat (limited to 'core/js/shareitemmodel.js')
-rw-r--r--core/js/shareitemmodel.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js
index 13396670aae..328d291b778 100644
--- a/core/js/shareitemmodel.js
+++ b/core/js/shareitemmodel.js
@@ -624,7 +624,9 @@
fetch: function() {
var model = this;
+ this.trigger('request', this);
OC.Share.loadItem(this.get('itemType'), this.get('itemSource'), function(data) {
+ model.trigger('sync', 'GET', this);
model.set(model.parse(data));
});
},