Merge pull request #444 from grafixeyehero/mediainfo

Minor update for media info
This commit is contained in:
Bond-009 2019-09-08 20:28:34 +02:00 committed by GitHub
commit 85f9e79e4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ define(["dialogHelper", "require", "layoutManager", "globalize", "userSettings",
if (version.Path && user && user.Policy.IsAdministrator) { if (version.Path && user && user.Policy.IsAdministrator) {
html += createAttribute(globalize.translate("MediaInfoPath"), version.Path) + "<br/>"; html += createAttribute(globalize.translate("MediaInfoPath"), version.Path) + "<br/>";
} }
if (version.Size && user && user.Policy.IsAdministrator) { if (version.Size) {
var size = (version.Size / (1024 * 1024)).toFixed(0) + " MB"; var size = (version.Size / (1024 * 1024)).toFixed(0) + " MB";
html += createAttribute(globalize.translate("MediaInfoSize"), size) + "<br/>"; html += createAttribute(globalize.translate("MediaInfoSize"), size) + "<br/>";
} }