diff options
author | Ian Moore <ian.moore@fireeye.com> | 2015-08-08 18:28:58 -0400 |
---|---|---|
committer | Ian Moore <ian.moore@fireeye.com> | 2015-08-08 18:28:58 -0400 |
commit | 8abdc86733317e83848962e499434e5233b9e792 (patch) | |
tree | 81d54130059062f34fd1f6c6b5adeca913efb247 /js | |
parent | f10958502572efa46f396f14c7016a6c0ec79104 (diff) | |
download | phpvirtualbox-8abdc86733317e83848962e499434e5233b9e792.zip phpvirtualbox-8abdc86733317e83848962e499434e5233b9e792.tar.gz phpvirtualbox-8abdc86733317e83848962e499434e5233b9e792.tar.bz2 |
Show disk encryption settings in details
Diffstat (limited to 'js')
-rw-r--r-- | js/phpvirtualbox.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/phpvirtualbox.js b/js/phpvirtualbox.js index abd7ca6..1b7225e 100644 --- a/js/phpvirtualbox.js +++ b/js/phpvirtualbox.js @@ -2359,8 +2359,9 @@ var vboxMedia = { */ mediumPrint: function(m,nosize,usehtml) { var name = vboxMedia.getName(m); + var enc = vboxMedia.getEncryptionSettings(m); if(nosize || !m || m.hostDrive) return name; - return name + ' (' + (m.deviceType == 'HardDisk' ? (usehtml ? '<i>': '') + trans(m.type,'VBoxGlobal', null, 'MediumType') + (usehtml ? '</i>': '') + ', ': '') + vboxMbytesConvert(m.logicalSize) + ')'; + return name + ' (' + (m.deviceType == 'HardDisk' ? trans(m.type,'VBoxGlobal', null, 'MediumType') + ', ' + (enc && enc.id ? trans('Encrypted', 'VBoxGlobal') + ', ' : '') : '') + vboxMbytesConvert(m.logicalSize) + ')'; }, /** |