From 9ebb0bb98da571870371a19f9cbadf37356e9dfb Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 28 Jan 2020 20:34:45 -0500 Subject: [PATCH] Api4 Explorer - enable debug by default --- ang/api4Explorer/Explorer.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ang/api4Explorer/Explorer.js b/ang/api4Explorer/Explorer.js index 1023b73914..542b84edae 100644 --- a/ang/api4Explorer/Explorer.js +++ b/ang/api4Explorer/Explorer.js @@ -330,9 +330,12 @@ default: format = 'raw'; } - if (name == 'limit') { + if (name === 'limit') { defaultVal = 25; } + if (name === 'debug') { + defaultVal = true; + } if (name === 'values') { defaultVal = defaultValues(defaultVal); } @@ -403,6 +406,7 @@ index = isInt($scope.index) ? +$scope.index : parseYaml($scope.index), result = 'result'; if ($scope.entity && $scope.action) { + delete params.debug; if (action.slice(0, 3) === 'get') { result = entity.substr(0, 7) === 'Custom_' ? _.camelCase(entity.substr(7)) : entity; result = lcfirst(action.replace(/s$/, '').slice(3) || result); -- 2.25.1