mirror of
https://github.com/apache/superset.git
synced 2026-04-11 20:37:16 +00:00
Explore mode should only expose cache on first load
This commit is contained in:
@@ -156,7 +156,6 @@ var px = (function () {
|
||||
container: container,
|
||||
container_id: container_id,
|
||||
selector: selector,
|
||||
druidify: null,
|
||||
querystring: function () {
|
||||
var parser = document.createElement('a');
|
||||
parser.href = data.json_endpoint;
|
||||
@@ -185,16 +184,12 @@ var px = (function () {
|
||||
clearInterval(timer);
|
||||
token.find("img.loading").hide();
|
||||
container.show();
|
||||
var that = this;
|
||||
|
||||
var cachedSelector = null;
|
||||
if (dashboard === undefined) {
|
||||
cachedSelector = $('#is_cached');
|
||||
if (data !== undefined && data.is_cached) {
|
||||
cachedSelector
|
||||
.click(function () {
|
||||
that.druidify(true);
|
||||
})
|
||||
.attr('title', 'Served from data cached at ' + data.cached_dttm + '. Click to force-refresh')
|
||||
.show()
|
||||
.tooltip('fixTitle');
|
||||
@@ -271,11 +266,10 @@ var px = (function () {
|
||||
}, 500);
|
||||
});
|
||||
},
|
||||
render: function (force, druidify) {
|
||||
render: function (force) {
|
||||
if (force === undefined) {
|
||||
force = false;
|
||||
}
|
||||
this.druidify = druidify;
|
||||
this.force = force;
|
||||
token.find("img.loading").show();
|
||||
container.hide();
|
||||
|
||||
Reference in New Issue
Block a user