Skip to content

Commit

Permalink
Merge pull request #1777 from anotherchrisberry/dropdown-append-to-body
Browse files Browse the repository at this point in the history
append dropdown menus to body
  • Loading branch information
anotherchrisberry committed Dec 4, 2015
2 parents 388d35e + b56afe2 commit 90830c5
Show file tree
Hide file tree
Showing 26 changed files with 80 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ <h3 select-on-dbl-click>
</div>
<div>
<div class="actions" ng-class="{ insights: instance.insightActions.length > 0 }" ng-if="instance.placement">
<div class="dropdown" uib-dropdown>
<div class="dropdown" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" ng-disabled="disabled" uib-dropdown-toggle>
Instance Actions <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li><a href ng-click="ctrl.enableInstanceInDiscovery()" ng-if="ctrl.canRegisterWithDiscovery()">Enable in Discovery</a></li>
<li><a href ng-click="ctrl.disableInstanceInDiscovery()" ng-if="ctrl.hasHealthState('Discovery', 'Up')">Disable in Discovery</a></li>
<li><a href ng-click="ctrl.registerInstanceWithLoadBalancer()" ng-if="ctrl.canRegisterWithLoadBalancer()">Register with Load Balancer</a></li>
Expand All @@ -41,11 +41,11 @@ <h3 select-on-dbl-click>
<li><a href ng-click="ctrl.terminateInstanceAndShrinkServerGroup()">Terminate and Shrink Server Group</a></li>
</ul>
</div>
<div class="dropdown" ng-if="instance.insightActions.length > 0" uib-dropdown>
<div class="dropdown" ng-if="instance.insightActions.length > 0" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-default dropdown-toggle" uib-dropdown-toggle>
Insight <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li ng-repeat="action in instance.insightActions"><a target=_blank href="{{action.url}}">{{action.label}}</a></li>
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ <h3 select-on-dbl-click>
</div>
<div>
<div class="actions">
<div class="dropdown" uib-dropdown>
<div class="dropdown" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" uib-dropdown-toggle>
Load Balancer Actions <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li><a href ng-click="ctrl.editLoadBalancer()">Edit Load Balancer</a></li>
<!--<li><a href ng-click="ctrl.cloneLoadBalancer()">Clone Load Balancer</a></li>-->
<li ng-if="!loadBalancer.instances.length"><a href ng-click="ctrl.deleteLoadBalancer()">Delete Load Balancer</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ <h3 select-on-dbl-click>
</h3>
</div>
<div class="actions">
<div class="dropdown" uib-dropdown>
<div class="dropdown" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" ng-disabled="disabled" uib-dropdown-toggle>
Security Group Actions <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li><a href ng-click="ctrl.editInboundRules()">Edit Inbound Rules</a></li>
<li><a href ng-click="ctrl.deleteSecurityGroup()">Delete Security Group</a></li>
<li><a href ng-click="ctrl.cloneSecurityGroup()">Clone Security Group</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ <h3 select-on-dbl-click>
</div>
<div>
<div class="actions" ng-class="{ insights: serverGroup.insightActions.length > 0 }">
<div class="dropdown" uib-dropdown>
<div class="dropdown" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" uib-dropdown-toggle>
Server Group Actions <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li><a href ng-if="!serverGroup.isDisabled" ng-click="ctrl.rollbackServerGroup()">Rollback</a></li>
<li role="presentation" class="divider" ng-if="!serverGroup.isDisabled"></li>
<li><a href ng-click="ctrl.resizeServerGroup()">Resize</a></li>
Expand All @@ -44,11 +44,11 @@ <h3 select-on-dbl-click>
<li><migrator application="application" server-group="serverGroup"></migrator></li>
</ul>
</div>
<div class="dropdown" ng-if="serverGroup.insightActions.length > 0" uib-dropdown>
<div class="dropdown" ng-if="serverGroup.insightActions.length > 0" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-default dropdown-toggle" uib-dropdown-toggle>
Insight <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li ng-repeat="action in serverGroup.insightActions"><a target=_blank href="{{action.url}}">{{action.label}}</a></li>
</ul>
</div>
Expand Down
12 changes: 6 additions & 6 deletions app/scripts/modules/azure/instance/details/instanceDetails.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ <h3 select-on-dbl-click>
</div>
<div>
<div class="actions" ng-class="{ insights: instance.insightActions.length > 0 }" ng-if="instance.placement">
<div class="dropdown" dropdown>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" ng-disabled="disabled" dropdown-toggle>
<div class="dropdown" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" ng-disabled="disabled" uib-dropdown-toggle>
Instance Actions <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li><a href ng-click="ctrl.enableInstanceInDiscovery()" ng-if="ctrl.canRegisterWithDiscovery()">Enable in Discovery</a></li>
<li><a href ng-click="ctrl.disableInstanceInDiscovery()" ng-if="ctrl.hasHealthState('Discovery', 'Up')">Disable in Discovery</a></li>
<li><a href ng-click="ctrl.registerInstanceWithLoadBalancer()" ng-if="ctrl.canRegisterWithLoadBalancer()">Register with Load Balancer</a></li>
Expand All @@ -49,11 +49,11 @@ <h3 select-on-dbl-click>
<li><a href ng-click="ctrl.terminateInstanceAndShrinkServerGroup()">Terminate and Shrink Server Group</a></li>
</ul>
</div>
<div class="dropdown" ng-if="instance.insightActions.length > 0" dropdown>
<button type="button" class="btn btn-sm btn-default dropdown-toggle" dropdown-toggle>
<div class="dropdown" ng-if="instance.insightActions.length > 0" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-default dropdown-toggle" uib-dropdown-toggle>
Insight <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li ng-repeat="action in instance.insightActions"><a target=_blank href="{{action.url}}">{{action.label}}</a></li>
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ <h3 select-on-dbl-click>
</div>
<div>
<div class="actions">
<div class="dropdown" dropdown>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" dropdown-toggle>
<div class="dropdown" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" uib-dropdown-toggle>
Load Balancer Actions <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li><a href ng-click="ctrl.editLoadBalancer()">Edit Load Balancer</a></li>
<!--<li><a href ng-click="ctrl.cloneLoadBalancer()">Clone Load Balancer</a></li>-->
<li ng-if="!loadBalancer.instances.length"><a href ng-click="ctrl.deleteLoadBalancer()">Delete Load Balancer</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ <h3 select-on-dbl-click>
</h3>
</div>
<div class="actions">
<div class="dropdown" dropdown>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" ng-disabled="disabled" dropdown-toggle>
<div class="dropdown" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" ng-disabled="disabled" uib-dropdown-toggle>
Security Group Actions <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li><a href ng-click="ctrl.editInboundRules()">Edit Inbound Rules</a></li>
<li><a href ng-click="ctrl.deleteSecurityGroup()">Delete Security Group</a></li>
<li><a href ng-click="ctrl.cloneSecurityGroup()">Clone Security Group</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ <h3 select-on-dbl-click>
</div>
<div>
<div class="actions" ng-class="{ insights: serverGroup.insightActions.length > 0 }">
<div class="dropdown" dropdown>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" dropdown-toggle>
<div class="dropdown" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" uib-dropdown-toggle>
Server Group Actions <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li><a href ng-click="ctrl.resizeServerGroup()">Resize</a></li>
<li><a href ng-if="!serverGroup.isDisabled" ng-click="ctrl.disableServerGroup()">Disable</a></li>
<li><a href ng-if="serverGroup.isDisabled" ng-click="ctrl.enableServerGroup()">Enable</a></li>
Expand All @@ -42,11 +42,11 @@ <h3 select-on-dbl-click>
<li><migrator application="application" server-group="serverGroup"></migrator></li>
</ul>
</div>
<div class="dropdown" ng-if="serverGroup.insightActions.length > 0" dropdown>
<button type="button" class="btn btn-sm btn-default dropdown-toggle" dropdown-toggle>
<div class="dropdown" ng-if="serverGroup.insightActions.length > 0" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-default dropdown-toggle" uib-dropdown-toggle>
Insight <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li ng-repeat="action in serverGroup.insightActions"><a target=_blank href="{{action.url}}">{{action.label}}</a></li>
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ <h3 select-on-dbl-click>
</div>
<div>
<div class="actions" ng-class="{ insights: instance.insightActions.length > 0 }" ng-if="instance.placement">
<div class="dropdown" uib-dropdown>
<div class="dropdown" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" ng-disabled="disabled" uib-dropdown-toggle>
Instance Actions <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li><a href ng-click="ctrl.enableInstanceInDiscovery()" ng-if="ctrl.canRegisterWithDiscovery()">Enable in Discovery</a></li>
<li><a href ng-click="ctrl.disableInstanceInDiscovery()" ng-if="ctrl.hasHealthState('Discovery', 'Up')">Disable in Discovery</a></li>
<li><a href ng-click="ctrl.registerInstanceWithLoadBalancer()" ng-if="ctrl.canRegisterWithLoadBalancer()">Register with Load Balancer</a></li>
Expand All @@ -40,11 +40,11 @@ <h3 select-on-dbl-click>
<li><a href ng-click="ctrl.terminateInstance()">Terminate</a></li>
</ul>
</div>
<div class="dropdown" ng-if="instance.insightActions.length > 0" uib-dropdown>
<div class="dropdown" ng-if="instance.insightActions.length > 0" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-default dropdown-toggle" uib-dropdown-toggle>
Insight <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li ng-repeat="action in instance.insightActions"><a target=_blank href="{{action.url}}">{{action.label}}</a></li>
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ <h3 select-on-dbl-click>
</div>
<div>
<div class="actions">
<div class="dropdown" uib-dropdown>
<div class="dropdown" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" uib-dropdown-toggle>
Load Balancer Actions <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li ng-if="!loadBalancer.instances.length"><a href ng-click="ctrl.deleteLoadBalancer()">Delete Load Balancer</a></li>
<li ng-if="loadBalancer.instances.length" class="disabled" uib-tooltip="You must detach all instances before you can delete this load balancer.">
<a href ng-click="ctrl.deleteLoadBalancer()">Delete Load Balancer</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ <h3 select-on-dbl-click>
</div>
<div>
<div class="actions" ng-class="{ insights: serverGroup.insightActions.length > 0 }">
<div class="dropdown" uib-dropdown>
<div class="dropdown" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" uib-dropdown-toggle>
Server Group Actions <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li><a href ng-click="ctrl.resizeServerGroup()">Resize</a></li>
<li><a href ng-if="!serverGroup.isDisabled" ng-click="ctrl.disableServerGroup()">Disable</a></li>
<li><a href ng-if="serverGroup.isDisabled && serverGroup.loadBalancers.length" ng-click="ctrl.enableServerGroup()">Enable</a></li>
<li><a href ng-click="ctrl.destroyServerGroup()">Destroy</a></li>
<li><a href ng-click="ctrl.cloneServerGroup(serverGroup)">Clone</a></li>
</ul>
</div>
<div class="dropdown" ng-if="serverGroup.insightActions.length > 0" uib-dropdown>
<div class="dropdown" ng-if="serverGroup.insightActions.length > 0" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-default dropdown-toggle" uib-dropdown-toggle>
Insight <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li ng-repeat="action in serverGroup.insightActions"><a target=_blank href="{{action.url}}">{{action.label}}</a></li>
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<button type="button" class="btn btn-sm btn-default dropdown-toggle" uib-dropdown-toggle>
{{pipeline.strategy === true ? 'Strategy' : 'Pipeline'}} Actions <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<ul class="uib-dropdown-menu">
<li><a href ng-click="pipelineConfigurerCtrl.renamePipeline()">Rename</a></li>
<li><a href ng-click="pipelineConfigurerCtrl.deletePipeline()">Delete</a></li>
<li><a href ng-click="pipelineConfigurerCtrl.editPipelineJson()">Edit as JSON</a></li>
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/modules/core/pipeline/config/createNew.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<button type="button" class="btn btn-sm btn-default dropdown-toggle" uib-dropdown-toggle>
Configure <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li><create-pipeline-button application="application"></create-pipeline-button></li>
<li class="dropdown-header" style="margin-top:0" ng-if="application.pipelineConfigs.length">PIPELINES</li>
<li ng-repeat="pipeline in application.pipelineConfigs"><a href
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h5 class="execution-details-title">
Actions
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li><a href ng-controller="RestartStageCtrl as restartCtrl" ng-click="restartCtrl.restart()">Restart Stage</a></li>
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
</div>
</div>
</form>
<ul class="dropdown-menu"
<ul class="uib-dropdown-menu"
role="menu"
ng-if="querying">
<li class="loader">searching..</li>
</ul>
<ul class="dropdown-menu"
<ul class="uib-dropdown-menu"
role="menu"
ng-if="!querying && showRecentItems">
<li ng-repeat-start="category in recentItems" class="category-heading">
Expand All @@ -36,7 +36,7 @@
</a>
</li>
</ul>
<ul class="dropdown-menu"
<ul class="uib-dropdown-menu"
role="menu"
ng-if="!querying && showSearchResults">
<li ng-repeat-start="category in categories | orderBy: 'order'" class="category-heading">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ <h3 select-on-dbl-click>
</div>
<div>
<div class="actions" ng-class="{ insights: instance.insightActions.length > 0 }" ng-if="instance.placement">
<div class="dropdown" uib-dropdown>
<div class="dropdown" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" ng-disabled="disabled" uib-dropdown-toggle>
Instance Actions <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li><a href ng-click="ctrl.enableInstanceInDiscovery()" ng-if="ctrl.canRegisterWithDiscovery()">Enable in Discovery</a></li>
<li><a href ng-click="ctrl.disableInstanceInDiscovery()" ng-if="ctrl.hasHealthState('Discovery', 'Up')">Disable in Discovery</a></li>
<li><a href ng-click="ctrl.registerInstanceWithLoadBalancer()" ng-if="ctrl.canRegisterWithLoadBalancer()">Register with Load Balancer</a></li>
Expand All @@ -47,11 +47,11 @@ <h3 select-on-dbl-click>
<li><a href ng-click="ctrl.terminateInstanceAndShrinkServerGroup()">Terminate and Shrink Server Group</a></li>
</ul>
</div>
<div class="dropdown" ng-if="instance.insightActions.length > 0" uib-dropdown>
<div class="dropdown" ng-if="instance.insightActions.length > 0" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-default dropdown-toggle" uib-dropdown-toggle>
Insight <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li ng-repeat="action in instance.insightActions"><a target=_blank href="{{action.url}}">{{action.label}}</a></li>
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ <h3 select-on-dbl-click>
</div>
<div>
<div class="actions">
<div class="dropdown" uib-dropdown>
<div class="dropdown" uib-dropdown dropdown-append-to-body>
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" uib-dropdown-toggle>
Load Balancer Actions <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<ul class="uib-dropdown-menu" role="menu">
<li><a href ng-click="ctrl.editLoadBalancer()">Edit Load Balancer</a></li>
<li ng-if="!loadBalancer.instances.length"><a href ng-click="ctrl.deleteLoadBalancer()">Delete Load Balancer</a></li>
<li ng-if="loadBalancer.instances.length" class="disabled" uib-tooltip="You must detach all instances before you can delete this load balancer.">
Expand Down
Loading

0 comments on commit 90830c5

Please sign in to comment.