Skip to content

Commit

Permalink
Only show timepicker settings if the timepicker is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed Oct 9, 2013
1 parent f41fb5d commit d4ce99b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/app/partials/dasheditor.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,12 @@ <h5>Sharing</h5>
</div>
</div>

<div ng-repeat="pulldown in dashboard.current.nav|filter:{enable:true}" ng-controller="PulldownCtrl" ng-include="'./app/panels/'+pulldown.type+'/editor.html'" ng-show="editor.index == 4+$index">
<div ng-repeat="pulldown in dashboard.current.nav" ng-controller="PulldownCtrl" ng-show="editor.index == 4+$index">
<ng-include ng-show="pulldown.enable" src="'./app/panels/'+pulldown.type+'/editor.html'"></ng-include>
<button ng-hide="pulldown.enable" class="btn" ng-click="pulldown.enable = true">Enable the {{pulldown.type}}</button>
</div>


</div>

<div class="modal-footer">
Expand Down
2 changes: 1 addition & 1 deletion src/css/bootstrap.dark.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/css/bootstrap.light.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/vendor/bootstrap/less/overrides.less
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ form input.ng-invalid {
.row-text {
text-transform: uppercase;
font-weight: bold;
font-size: 0.8em;
font-size: 0.9em;
}

.row-close {
Expand Down

0 comments on commit d4ce99b

Please sign in to comment.