[view/explorer][xs]: show unknown when doc count unknown (rather than nothing).
This commit is contained in:
@@ -102,7 +102,7 @@ my.DataExplorer = Backbone.View.extend({
|
|||||||
// retrieve basic data like headers etc
|
// retrieve basic data like headers etc
|
||||||
// note this.model and dataset returned are the same
|
// note this.model and dataset returned are the same
|
||||||
this.model.fetch().then(function(dataset) {
|
this.model.fetch().then(function(dataset) {
|
||||||
self.el.find('.doc-count').text(self.model.docCount);
|
self.el.find('.doc-count').text(self.model.docCount || 'Unknown');
|
||||||
// initialize of dataTable calls render
|
// initialize of dataTable calls render
|
||||||
self.model.getDocuments(self.config.displayCount);
|
self.model.getDocuments(self.config.displayCount);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user