Commit b6b81ec8 by Ian Babrou

do not show empty load/save dropdowns

parent 67a13986
...@@ -11,9 +11,6 @@ function (angular, _) { ...@@ -11,9 +11,6 @@ function (angular, _) {
$scope.loader = dashboard.current.loader; $scope.loader = dashboard.current.loader;
$scope.init = function() { $scope.init = function() {
$scope.advancedLoad = false;
$scope.advancedSave = false;
$scope.gist_pattern = /(^\d{5,}$)|(^[a-z0-9]{10,}$)|(gist.github.com(\/*.*)\/[a-z0-9]{5,}\/*$)/; $scope.gist_pattern = /(^\d{5,}$)|(^[a-z0-9]{10,}$)|(gist.github.com(\/*.*)\/[a-z0-9]{5,}\/*$)/;
$scope.gist = $scope.gist || {}; $scope.gist = $scope.gist || {};
$scope.elasticsearch = $scope.elasticsearch || {}; $scope.elasticsearch = $scope.elasticsearch || {};
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</table> </table>
</li> </li>
<li class="dropdown-submenu noarrow"> <li class="dropdown-submenu noarrow" ng-show="dashboard.current.loader.load_gist || dashboard.current.loader.load_local">
<a tabindex="-1" class="small" style="padding:0"><i class="icon-caret-left"></i> Advanced</a> <a tabindex="-1" class="small" style="padding:0"><i class="icon-caret-left"></i> Advanced</a>
<ul class="dropdown-menu" style="padding:10px"> <ul class="dropdown-menu" style="padding:10px">
<li ng-show='dashboard.current.loader.load_local'> <li ng-show='dashboard.current.loader.load_local'>
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
</form> </form>
</li> </li>
<li class="dropdown-submenu noarrow"> <li class="dropdown-submenu noarrow" ng-show="dashboard.current.loader.save_local || dashboard.current.loader.save_gist || dashboard.current.loader.save_default">
<a tabindex="-1" class="small" style="padding:0"><i class="icon-caret-left"></i> Advanced</a> <a tabindex="-1" class="small" style="padding:0"><i class="icon-caret-left"></i> Advanced</a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment