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:
Vadim Kimlaychuk 2015-05-20 22:08:29 +03:00 committed by Rohit Yadav
parent f50a9489b8
commit 46433c1e92
1 changed files with 4 additions and 2 deletions

View File

@ -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