diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-09-28 15:57:57 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-09-28 15:57:57 +0200 |
commit | a823a79f12dde467a48b0366821a505ed66ecd66 (patch) | |
tree | 55e01ccea6551b6abad2867363ce6a512239fae8 /core/js/shareitemmodel.js | |
parent | d68079f93210f8fe0b5327e686497db97fde6a3e (diff) | |
download | nextcloud-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.js | 2 |
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)); }); }, |