Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not show empty load/save dropdowns #627

Merged
merged 1 commit into from
Nov 1, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/app/controllers/dashLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ function (angular, _) {
$scope.loader = dashboard.current.loader;

$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 = $scope.gist || {};
$scope.elasticsearch = $scope.elasticsearch || {};
Expand Down
4 changes: 2 additions & 2 deletions src/app/partials/dashLoader.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h6 ng-hide="elasticsearch.dashboards.length">No dashboards matching your query
</table>
</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>
<ul class="dropdown-menu" style="padding:10px">
<li ng-show='dashboard.current.loader.load_local'>
Expand Down Expand Up @@ -73,7 +73,7 @@ <h6 ng-hide="gist.files.length || !gist.url.length">No gist dashboards found</h6
</form>
</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>
<ul class="dropdown-menu">

Expand Down