two more occurences of trust level enums

pull/53/head
Zlatin Balevsky 2020-10-04 17:12:53 +01:00
parent dd4635e82c
commit d0c9594c63
No known key found for this signature in database
GPG Key ID: A72832072D525E41
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ class ChatRoomView {
membersTable = table(autoCreateRowSorter : true, rowHeight : rowHeight) {
tableModel(list : model.members) {
closureColumn(header : trans("NAME"), preferredWidth: 100, type: String, read : {it.getHumanReadableName()})
closureColumn(header : trans("TRUST_STATUS"), preferredWidth: 30, type : String, read : {String.valueOf(model.core.trustService.getLevel(it.destination))})
closureColumn(header : trans("TRUST_STATUS"), preferredWidth: 30, type : String, read : {trans(model.core.trustService.getLevel(it.destination).name())})
}
}
}

View File

@ -53,7 +53,7 @@ class FetchCertificatesView {
certsTable = table(autoCreateRowSorter : true, rowHeight : rowHeight) {
tableModel(list : model.certificates) {
closureColumn(header : trans("ISSUER"), preferredWidth : 200, type : String, read : {it.issuer.getHumanReadableName()})
closureColumn(header : trans("TRUST_STATUS"), preferredWidth: 50, type : String, read : {controller.core.trustService.getLevel(it.issuer.destination)})
closureColumn(header : trans("TRUST_STATUS"), preferredWidth: 50, type : String, read : {trans(controller.core.trustService.getLevel(it.issuer.destination).name())})
closureColumn(header : trans("NAME"), preferredWidth : 200, type: String, read : {it.name.name.toString()})
closureColumn(header : trans("ISSUED"), preferredWidth : 100, type : String, read : {
def date = new Date(it.timestamp)