|
|
@ -108,7 +108,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
this.lazyUpdateVerified = _.debounce(
|
|
|
|
this.lazyUpdateVerified = _.debounce(
|
|
|
|
this.model.updateVerified.bind(this.model),
|
|
|
|
this.model.updateVerified.bind(this.model),
|
|
|
|
1000
|
|
|
|
1000 // one second
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
this.throttledGetProfiles = _.throttle(
|
|
|
|
|
|
|
|
this.model.getProfiles.bind(this.model),
|
|
|
|
|
|
|
|
1000 * 60 * 5 // five minutes
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
this.render();
|
|
|
|
this.render();
|
|
|
@ -320,7 +324,7 @@
|
|
|
|
onOpened: function() {
|
|
|
|
onOpened: function() {
|
|
|
|
// TODO: we may want to show a loading dialog until this status fetch
|
|
|
|
// TODO: we may want to show a loading dialog until this status fetch
|
|
|
|
// and potentially the below message fetch are complete.
|
|
|
|
// and potentially the below message fetch are complete.
|
|
|
|
this.statusFetch = this.model.getProfiles().then(function() {
|
|
|
|
this.statusFetch = this.throttledGetProfiles().then(function() {
|
|
|
|
this.model.updateVerified().then(function() {
|
|
|
|
this.model.updateVerified().then(function() {
|
|
|
|
this.onVerifiedChange();
|
|
|
|
this.onVerifiedChange();
|
|
|
|
this.statusFetch = null;
|
|
|
|
this.statusFetch = null;
|
|
|
|