mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
dim visualization during refresh (#1636)
This commit is contained in:
parent
82693211f0
commit
b961c95121
@ -123,6 +123,7 @@ const px = function () {
|
|||||||
|
|
||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
token.find('img.loading').hide();
|
token.find('img.loading').hide();
|
||||||
|
container.fadeTo(0.5, 1);
|
||||||
container.show();
|
container.show();
|
||||||
|
|
||||||
if (data !== undefined) {
|
if (data !== undefined) {
|
||||||
@ -153,6 +154,7 @@ const px = function () {
|
|||||||
error(msg, xhr) {
|
error(msg, xhr) {
|
||||||
let errorMsg = msg;
|
let errorMsg = msg;
|
||||||
token.find('img.loading').hide();
|
token.find('img.loading').hide();
|
||||||
|
container.fadeTo(0.5, 1);
|
||||||
let errHtml = '';
|
let errHtml = '';
|
||||||
try {
|
try {
|
||||||
const o = JSON.parse(msg);
|
const o = JSON.parse(msg);
|
||||||
@ -210,6 +212,7 @@ const px = function () {
|
|||||||
this.force = force;
|
this.force = force;
|
||||||
}
|
}
|
||||||
token.find('img.loading').show();
|
token.find('img.loading').show();
|
||||||
|
container.fadeTo(0.5, 0.25);
|
||||||
container.css('height', this.height());
|
container.css('height', this.height());
|
||||||
dttm = 0;
|
dttm = 0;
|
||||||
timer = setInterval(stopwatch, 10);
|
timer = setInterval(stopwatch, 10);
|
||||||
@ -219,6 +222,7 @@ const px = function () {
|
|||||||
},
|
},
|
||||||
resize() {
|
resize() {
|
||||||
token.find('img.loading').show();
|
token.find('img.loading').show();
|
||||||
|
container.fadeTo(0.5, 0.25);
|
||||||
container.css('height', this.height());
|
container.css('height', this.height());
|
||||||
this.viz.render();
|
this.viz.render();
|
||||||
this.viz.resize();
|
this.viz.resize();
|
||||||
|
Loading…
Reference in New Issue
Block a user