diff --git a/webui/src/main/js/filesTable.js b/webui/src/main/js/filesTable.js index ef06e5c5..69ac3539 100644 --- a/webui/src/main/js/filesTable.js +++ b/webui/src/main/js/filesTable.js @@ -1,8 +1,9 @@ class SharedFile { - constructor(name, size, comment) { + constructor(name, size, comment, certified) { this.name = name this.size = size this.comment = comment + this.certified = certified } } @@ -57,20 +58,27 @@ function refreshTable() { comment = comment[0].childNodes[0].nodeValue else comment = null + var certified = files[i].getElementsByTagName("Certified")[0].childNodes[0].nodeValue var nodeId = Base64.encode(fileName) - var newSharedFile = new SharedFile(fileName, size, comment) + var newSharedFile = new SharedFile(fileName, size, comment, certified) filesByPath.set(nodeId, newSharedFile) } for (var [path, file] of filesByPath) { - var unshareLink = "Unshare" + var unshareLink = "" + _t("Unshare") + "" + + var certifyLink = "" + _t("Certify") + "" + var certified = "" + if (file.certified == "true") + certified = _t("Certified") var commentLink = "" + generateCommentLink(path) + "" tableHtml += "