From 77771699c2f7d14d9b90a6571d1943dc844e0fa6 Mon Sep 17 00:00:00 2001 From: Alison Date: Tue, 4 Jul 2017 18:05:25 -0500 Subject: [PATCH] works for filtering _v literally (re #31) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit but don’t name a table abcdefghijklmnop. --- client/app/components/queries/schema-browser.html | 10 +++++++++- client/app/components/queries/schema-browser.js | 14 ++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/client/app/components/queries/schema-browser.html b/client/app/components/queries/schema-browser.html index 9ef734b025..7c47019d62 100644 --- a/client/app/components/queries/schema-browser.html +++ b/client/app/components/queries/schema-browser.html @@ -6,10 +6,18 @@ ng-click="$ctrl.onRefresh()"> + +
-
+
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,