[assist] Make sure the spinner is shown in the context popover for huge tables
@@ -254,8 +254,10 @@ from desktop.views import _ko
return result;
};
- if (self.catalogEntry.isField() && !self.catalogEntry.isComplex()) {
self.loading(true);
+
+ window.setTimeout(function () {
+ if (self.catalogEntry.isField() && !self.catalogEntry.isComplex()) {
self.cancellablePromises.push(self.catalogEntry.getSample({ silenceErrors: true, cancellable: true }).done(function (samples) {
if (samples.data && samples.data.length) {
self.columnSamples(samples.data);
@@ -266,7 +268,6 @@ from desktop.views import _ko
self.loading(false);
}));
} else {
- self.loading(true);
var onClick = function (sampleEnrichedEntry) {
params.onClick(sampleEnrichedEntry.catalogEntry);
};
@@ -341,6 +342,7 @@ from desktop.views import _ko
}));
}
}
+ }, 100)
}
CatalogEntriesList.prototype.dispose = function () {
