diff --git a/client/app/components/queries/schema-browser.js b/client/app/components/queries/schema-browser.js
index 7826a86e2b..ca62768bf8 100644
--- a/client/app/components/queries/schema-browser.js
+++ b/client/app/components/queries/schema-browser.js
@@ -3,6 +3,9 @@ import template from './schema-browser.html';
function SchemaBrowserCtrl($scope) {
'ngInject';
+ this.versionToggle = false;
+ this.versionFilter = 'abcdefghijklmnop';
+
this.showTable = (table) => {
table.collapsed = !table.collapsed;
$scope.$broadcast('vsRepeatTrigger');
@@ -17,12 +20,23 @@ function SchemaBrowserCtrl($scope) {
return size;
};
+
+ this.flipToggleVersionedTables = (versionToggle) => {
+ if (versionToggle === false) {
+ this.versionToggle = true;
+ this.versionFilter = '_v';
+ } else {
+ this.versionToggle = false;
+ this.versionFilter = 'abcdefghijklmnop';
+ }
+ };
}
const SchemaBrowser = {
bindings: {
schema: '<',
onRefresh: '&',
+ flipToggleVersionedTables: '&',
},
controller: SchemaBrowserCtrl,
template,