mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Update limit-panels directive to query for the new Panels component
This commit is contained in:
parent
431ee9bbbf
commit
decfc8fa8c
@ -10,9 +10,10 @@ export default [function() {
|
||||
const maxPanels = parseInt(scope.maxPanels);
|
||||
|
||||
scope.$watch(
|
||||
() => angular.element('#' + scope.panelContainer).find('.Panel').length,
|
||||
() => angular.element('#' + scope.panelContainer).find('.Panel, .at-Panel').length,
|
||||
() => {
|
||||
const panels = angular.element('#' + scope.panelContainer).find('.Panel');
|
||||
const panels = angular.element('#' + scope.panelContainer).find('.Panel, .at-Panel');
|
||||
|
||||
if(panels.length > maxPanels) {
|
||||
// hide the excess panels
|
||||
$(panels).each(function( index ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user