mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8231: Fixed UI empty drop-down list for LB rules
This closes #271
This closes #302
(cherry picked from commit f8e1ff12ab)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
f50a9489b8
commit
46433c1e92
|
|
@ -1698,7 +1698,8 @@
|
|||
description: _l('label.lb.algorithm.source')
|
||||
}];
|
||||
if (typeof args.context != 'undefined') {
|
||||
data = getLBAlgorithms(args.context.networks[0]);
|
||||
var lbAlgs = getLBAlgorithms(args.context.networks[0]);
|
||||
data = (lbAlgs.length == 0) ? data : lbAlgs;
|
||||
}
|
||||
args.response.success({
|
||||
data: data
|
||||
|
|
@ -3542,7 +3543,8 @@
|
|||
description: _l('label.lb.algorithm.source')
|
||||
}];
|
||||
if (typeof args.context != 'undefined') {
|
||||
data = getLBAlgorithms(args.context.networks[0]);
|
||||
var lbAlgs = getLBAlgorithms(args.context.networks[0]);
|
||||
data = (lbAlgs.length == 0) ? data : lbAlgs;
|
||||
}
|
||||
args.response.success({
|
||||
data: data
|
||||
|
|
|
|||
Loading…
Reference in New Issue