mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-9784 : GPU detail not displayed in GPU tab of management server UI.
(cherry picked from commit 36abc63b91)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
0fbbbdb83a
commit
859b2150cd
|
|
@ -17042,9 +17042,16 @@
|
|||
}
|
||||
},
|
||||
dataProvider: function (args) {
|
||||
var items = gpugroupObj.vgpu.sort(function(a, b) {
|
||||
return a.maxvgpuperpgpu >= b.maxvgpuperpgpu;
|
||||
});
|
||||
var items;
|
||||
|
||||
if(typeof(gpugroupObj.vgpu) != "undefined") {
|
||||
items = gpugroupObj.vgpu.sort(function(a, b) {
|
||||
return a.maxvgpuperpgpu >= b.maxvgpuperpgpu;
|
||||
});
|
||||
}
|
||||
else {
|
||||
items = gpugroupObj.vgpu;
|
||||
}
|
||||
$(items).each(function () {
|
||||
this.maxresolution = (this.maxresolutionx == null || this.maxresolutionx == 0
|
||||
|| this.maxresolutiony == null || this.maxresolutiony == 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue