mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
Periodically update the slices in the dashboard (#374)
* Periodically update the slices in the dashboard * Make the refresh interval changeable * Add the button and the modal for the user to change the refresh interval * Don't use callback for refreshing * Randomize to prevent all widgets refreshing at the same time * Show the loading icon as an overlay when the slices refresh
This commit is contained in:
committed by
Maxime Beauchemin
parent
9a33557112
commit
d8a2b621d8
@@ -314,8 +314,6 @@ var px = (function () {
|
||||
}
|
||||
this.force = force;
|
||||
token.find("img.loading").show();
|
||||
container.hide();
|
||||
container.html('');
|
||||
container.css('height', slice.height());
|
||||
dttm = 0;
|
||||
timer = setInterval(stopwatch, 10);
|
||||
@@ -325,9 +323,7 @@ var px = (function () {
|
||||
},
|
||||
resize: function () {
|
||||
token.find("img.loading").show();
|
||||
container.hide();
|
||||
container.css('height', slice.height());
|
||||
container.html('');
|
||||
this.viz.render();
|
||||
this.viz.resize();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user