From 292c16482a46456439dfe7b0d2717906036057bd Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 8 Apr 2020 14:37:55 -0400 Subject: [PATCH] APIv4 Explorer - Use standard widget for SELECT --- ang/api4Explorer/Explorer.html | 16 ++++++++++++---- ang/api4Explorer/Explorer.js | 4 ++-- css/api4-explorer.css | 4 ++++ 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/ang/api4Explorer/Explorer.html b/ang/api4Explorer/Explorer.html index cfcfb14971..02b125fcfb 100644 --- a/ang/api4Explorer/Explorer.html +++ b/ang/api4Explorer/Explorer.html @@ -50,10 +50,18 @@ -
- - -
+
+ select * +
+
+ + +
+
+
+ +
+
diff --git a/ang/api4Explorer/Explorer.js b/ang/api4Explorer/Explorer.js index 57cc5d60f0..9d6d26a075 100644 --- a/ang/api4Explorer/Explorer.js +++ b/ang/api4Explorer/Explorer.js @@ -377,7 +377,7 @@ deep: format === 'json' }); } - if (typeof objectParams[name] !== 'undefined' || name === 'groupBy') { + if (typeof objectParams[name] !== 'undefined' || name === 'groupBy' || name === 'select') { $scope.$watch('params.' + name, function(values) { // Remove empty values _.each(values, function(clause, index) { @@ -390,7 +390,7 @@ var field = value; $timeout(function() { if (field) { - if (name === 'groupBy') { + if (name === 'groupBy' || name === 'select') { $scope.params[name].push(field); } else { var defaultOp = _.cloneDeep(objectParams[name]); diff --git a/css/api4-explorer.css b/css/api4-explorer.css index bd309c33b7..8dcc817cf6 100644 --- a/css/api4-explorer.css +++ b/css/api4-explorer.css @@ -143,6 +143,10 @@ display: inline-block; } +#bootstrap-theme.api4-explorer-page i.fa-arrows { + cursor: move; +} + #bootstrap-theme.api4-explorer-page .api4-clause-badge { width: 55px; display: inline-block; -- 2.25.1