[assist] Pre-select the source and root item for the collections panel
@@ -1271,6 +1271,11 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, get_ord
AssistDbPanel.prototype.init = function () {
var self = this;
+ if (self.options.isSolr) {
+ self.selectedSource(self.sourceIndex['solr']);
+ self.setDatabaseWhenLoaded();
+ }
+ else {
var storageSourceType = self.apiHelper.getFromTotalStorage('assist', 'lastSelectedSource');
if (!self.selectedSource()) {
@@ -1282,6 +1287,7 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, get_ord
self.setDatabaseWhenLoaded();
}
}
+ }
};
/**
