Github user sebastianrothbucher commented on a diff in the pull request:
https://github.com/apache/couchdb-fauxton/pull/386#discussion_r29994895
--- Diff: app/addons/activetasks/stores.js ---
@@ -28,6 +28,35 @@ define([
this._pollingIntervalSeconds = 5;
this.sortCollectionByColumnHeader(this._sortByHeader);
this._backboneCollection = backboneCollection;
+ this.setIsLoading(true);
+ },
+
+ isLoading: function () {
+ return this._isLoading;
+ },
+
+ setIsLoading: function (bool) {
+ this._isLoading = bool;
+ if (bool) {
+ this.startTimerForLoading();
+ } else {
+ this.stopTimerForLoading();
+ }
+ },
+
+ startTimerForLoading: function () {
+ this._clockForLoadingLines = 0;
+ this._clockForLoadingLinesID = setInterval(function () {
+ this._clockForLoadingLines++;
--- End diff --
maybe this is silly, but: can we not just remember the time we started and
compare it with the time of stop 2 determine whether or not we want to show the
lines a little longer? (i.e. this._startTimeOfLoad=(new Date()).getTime() and
if(((new Date()).getTime()-this._startTimeOfLoad)<x) then...
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---