mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
do not show empty load/save dropdowns
This commit is contained in:
parent
67a1398608
commit
b6b81ec833
@ -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 || {};
|
||||
|
@ -28,7 +28,7 @@
|
||||
</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'>
|
||||
@ -73,7 +73,7 @@
|
||||
</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">
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user