cartodb-4.42/lib/assets/javascripts/dashboard/views/public-dataset/public-carto-table-metadata.js

26 lines
606 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
const CartoTableMetadata = require('dashboard/views/public-dataset/carto-table-metadata');
const CartoTableData = require('dashboard/data/table/carto-table-data');
module.exports = CartoTableMetadata.extend({
fetch: function () {
this.trigger('sync');
// nothing to fetch here
},
data: function () {
if (this._data === undefined) {
this._data = new CartoTableData(null, {
table: this,
configModel: this._configModel
});
this._data.fetch = function () { };
}
if (this.sqlView) {
return this.sqlView;
}
return this._data;
}
});