bug 6158: Primary storage will now show ISCSI Share for iscsi primary storage and NFS Share for nfs primary storage.

status 6158: resolved fixed
This commit is contained in:
will 2010-11-07 16:47:18 -08:00
parent 2b9d85e075
commit c2cfc811b4
1 changed files with 4 additions and 2 deletions

View File

@ -59,8 +59,10 @@ function primarystorageJsonToDetailsTab($midmenuItem1) {
$detailsTab.find("#zonename").text(fromdb(jsonObj.zonename));
$detailsTab.find("#podname").text(fromdb(jsonObj.podname));
$detailsTab.find("#clustername").text(fromdb(jsonObj.clustername));
$detailsTab.find("#type").text(fromdb(jsonObj.type));
$detailsTab.find("#clustername").text(fromdb(jsonObj.clustername));
var storageType = "ISCSI Share";
if (jsonObj.type == 'NetworkFilesystem') storageType = "NFS Share";
$detailsTab.find("#type").text(storageType);
$detailsTab.find("#ipaddress").text(fromdb(jsonObj.ipaddress));
$detailsTab.find("#path").text(fromdb(jsonObj.path));
$detailsTab.find("#disksizetotal").text(convertBytes(jsonObj.disksizetotal));