Show Comment -> View Comment

pull/53/head
Zlatin Balevsky 2020-10-02 11:26:58 +01:00
parent b3e8b55fdf
commit 6f153d5472
No known key found for this signature in database
GPG Key ID: A72832072D525E41
4 changed files with 6 additions and 7 deletions

View File

@ -426,7 +426,6 @@ ISSUER=Issuer
TRUST_STATUS=Trust Status
ISSUED=Issued
IMPORT=Import
SHOW_COMMENT=Show Comment
CERTIFICATES_IMPORTED=Certificates imported.
CERTIFICATE_COMMENT=Certificate Comment

View File

@ -72,7 +72,7 @@ class CertificateControlView {
}
}
panel (constraints : BorderLayout.SOUTH) {
button(text : trans("SHOW_COMMENT"), enabled : bind {model.showCommentActionEnabled}, showCommentAction)
button(text : trans("VIEW_COMMENT"), enabled : bind {model.showCommentActionEnabled}, showCommentAction)
}
}
}
@ -147,7 +147,7 @@ class CertificateControlView {
if (!model.showCommentActionEnabled)
return
JPopupMenu menu = new JPopupMenu()
JMenuItem showComment = new JMenuItem(trans("SHOW_COMMENT"))
JMenuItem showComment = new JMenuItem(trans("VIEW_COMMENT"))
showComment.addActionListener({controller.showComment()})
menu.add(showComment)
menu.show(e.getComponent(), e.getX(), e.getY())

View File

@ -65,7 +65,7 @@ class FetchCertificatesView {
}
panel(constraints : BorderLayout.SOUTH) {
button(text : trans("IMPORT"), enabled : bind {model.importActionEnabled}, importCertificatesAction)
button(text : trans("SHOW_COMMENT"), enabled : bind {model.showCommentActionEnabled}, showCommentAction)
button(text : trans("VIEW_COMMENT"), enabled : bind {model.showCommentActionEnabled}, showCommentAction)
button(text : trans("CLOSE"), dismissAction)
}
}
@ -107,7 +107,7 @@ class FetchCertificatesView {
importItem.addActionListener({controller.importCertificates()})
menu.add(importItem)
if (model.showCommentActionEnabled) {
JMenuItem showComment = new JMenuItem(trans("SHOW_COMMENt"))
JMenuItem showComment = new JMenuItem(trans("VIEW_COMMENT"))
showComment.addActionListener({controller.showComment()})
menu.add(showComment)
}

View File

@ -84,7 +84,7 @@ class SharedFileView {
}
}
panel(constraints : BorderLayout.SOUTH) {
button(text : trans("SHOW_COMMENT"), enabled : bind {model.showCommentActionEnabled}, showCommentAction)
button(text : trans("VIEW_COMMENT"), enabled : bind {model.showCommentActionEnabled}, showCommentAction)
}
}
}
@ -147,7 +147,7 @@ class SharedFileView {
if (!model.showCommentActionEnabled)
return
JPopupMenu menu = new JPopupMenu()
JMenuItem showComment = new JMenuItem(trans("SHOW_COMMENT"))
JMenuItem showComment = new JMenuItem(trans("VIEW_COMMENT"))
showComment.addActionListener({controller.showComment()})
menu.add(showComment)
menu.show(e.getComponent(), e.getX(), e.getY())