mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8231: Fixed UI empty drop-down list for LB rules
This closes #302 Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
666263e84d
commit
94f1ebb60a
|
|
@ -1703,8 +1703,9 @@
|
|||
name: 'source',
|
||||
description: _l('label.lb.algorithm.source')
|
||||
}];
|
||||
if (typeof args.context == 'undefined') {
|
||||
data = getLBAlgorithms(args.context.networks[0]);
|
||||
if (typeof args.context != 'undefined') {
|
||||
var lbAlgs = getLBAlgorithms(args.context.networks[0]);
|
||||
data = (lbAlgs.length == 0) ? data : lbAlgs;
|
||||
}
|
||||
args.response.success({
|
||||
data: data
|
||||
|
|
@ -3551,8 +3552,9 @@
|
|||
name: 'source',
|
||||
description: _l('label.lb.algorithm.source')
|
||||
}];
|
||||
if (typeof args.context == 'undefined') {
|
||||
data = getLBAlgorithms(args.context.networks[0]);
|
||||
if (typeof args.context != 'undefined') {
|
||||
var lbAlgs = getLBAlgorithms(args.context.networks[0]);
|
||||
data = (lbAlgs.length == 0) ? data : lbAlgs;
|
||||
}
|
||||
args.response.success({
|
||||
data: data
|
||||
|
|
|
|||
Loading…
Reference in New Issue