mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6543 Sort domain lists in UI
As recently discussed on the dev list:
This sorts the domain lists based on their path.
Especially handy when having a lot of domains,
like in a public cloud.
Cherry-picked to 4.5 branch since commit exists in 4.4 and master branch.
(cherry picked from commit befa28251d)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
c9fd57fff3
commit
9a8ee5664f
|
|
@ -92,6 +92,9 @@
|
|||
if (this.level === 0)
|
||||
rootDomainId = this.id;
|
||||
});
|
||||
items.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
args.response.success({
|
||||
data: items
|
||||
});
|
||||
|
|
|
|||
|
|
@ -552,6 +552,9 @@
|
|||
description: this.path
|
||||
});
|
||||
});
|
||||
items.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
args.response.success({
|
||||
data: items
|
||||
});
|
||||
|
|
@ -1192,6 +1195,9 @@
|
|||
description: this.path
|
||||
});
|
||||
});
|
||||
items.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
args.response.success({
|
||||
data: items
|
||||
});
|
||||
|
|
@ -1857,6 +1863,9 @@
|
|||
description: this.path
|
||||
});
|
||||
});
|
||||
items.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
args.response.success({
|
||||
data: items
|
||||
});
|
||||
|
|
|
|||
|
|
@ -301,6 +301,9 @@
|
|||
});
|
||||
}
|
||||
}
|
||||
array1.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
args.response.success({
|
||||
data: array1
|
||||
});
|
||||
|
|
|
|||
|
|
@ -230,6 +230,9 @@
|
|||
});
|
||||
}
|
||||
}
|
||||
array1.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
args.response.success({
|
||||
data: array1
|
||||
});
|
||||
|
|
@ -1632,6 +1635,9 @@
|
|||
});
|
||||
}
|
||||
}
|
||||
array1.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
args.response.success({
|
||||
data: array1
|
||||
});
|
||||
|
|
|
|||
|
|
@ -656,6 +656,9 @@
|
|||
description: this.path
|
||||
});
|
||||
});
|
||||
items.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
args.response.success({
|
||||
data: items
|
||||
});
|
||||
|
|
@ -830,6 +833,9 @@
|
|||
});
|
||||
}
|
||||
}
|
||||
array1.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
args.response.success({
|
||||
data: array1
|
||||
});
|
||||
|
|
@ -5222,6 +5228,9 @@
|
|||
});
|
||||
}
|
||||
}
|
||||
array1.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
args.response.success({
|
||||
data: array1
|
||||
});
|
||||
|
|
|
|||
|
|
@ -734,6 +734,9 @@
|
|||
});
|
||||
}
|
||||
}
|
||||
array1.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
args.response.success({
|
||||
data: array1
|
||||
});
|
||||
|
|
|
|||
|
|
@ -377,6 +377,9 @@
|
|||
});
|
||||
}
|
||||
}
|
||||
array1.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
args.response.success({
|
||||
data: array1
|
||||
});
|
||||
|
|
|
|||
|
|
@ -483,6 +483,9 @@ var addGuestNetworkDialog = {
|
|||
}
|
||||
});
|
||||
}
|
||||
items.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
args.response.success({
|
||||
data: items
|
||||
});
|
||||
|
|
|
|||
|
|
@ -429,6 +429,9 @@
|
|||
});
|
||||
}
|
||||
}
|
||||
array1.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
args.response.success({
|
||||
data: array1
|
||||
});
|
||||
|
|
@ -1680,6 +1683,9 @@
|
|||
});
|
||||
}
|
||||
}
|
||||
array1.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
args.response.success({
|
||||
data: array1
|
||||
});
|
||||
|
|
|
|||
|
|
@ -7920,7 +7920,10 @@
|
|||
description: this.name
|
||||
});
|
||||
});
|
||||
|
||||
items.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
|
||||
args.response.success({
|
||||
data: items
|
||||
});
|
||||
|
|
@ -13170,6 +13173,9 @@
|
|||
description: this.name
|
||||
});
|
||||
});
|
||||
items.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
|
||||
args.response.success({
|
||||
data: items
|
||||
|
|
@ -13385,7 +13391,10 @@
|
|||
description: this.name
|
||||
});
|
||||
});
|
||||
|
||||
items.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
|
||||
args.response.success({
|
||||
data: items
|
||||
});
|
||||
|
|
@ -13983,7 +13992,10 @@
|
|||
description: this.name
|
||||
});
|
||||
});
|
||||
|
||||
items.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
|
||||
args.response.success({
|
||||
data: items
|
||||
});
|
||||
|
|
@ -14510,6 +14522,9 @@
|
|||
description: this.name
|
||||
});
|
||||
});
|
||||
items.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
|
||||
args.response.success({
|
||||
data: items
|
||||
|
|
@ -15341,6 +15356,9 @@
|
|||
description: this.name
|
||||
});
|
||||
});
|
||||
items.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
|
||||
args.response.success({
|
||||
data: items
|
||||
|
|
@ -15655,6 +15673,9 @@
|
|||
description: this.name
|
||||
});
|
||||
});
|
||||
items.sort(function(a, b) {
|
||||
return a.description.localeCompare(b.description);
|
||||
});
|
||||
|
||||
args.response.success({
|
||||
data: items
|
||||
|
|
|
|||
Loading…
Reference in New Issue