Skip to content

Commit

Permalink
cambios nico comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico committed Dec 27, 2024
1 parent 09487f3 commit ed86d34
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ private void init(List<Email> emailsList) {
@Override
protected void populateItem(ListItem<Email> item) {
final Email currentEmail = item.getModelObject();
boolean isSent = currentEmail.getSent();
try {
String message = currentEmail.getSent() ? getString("messageListSentYes") : getString("messageListSentNo");
String message = isSent ? getString("messageListSentYes") : getString("messageListSentNo");
item.add(new Label("sent", message));
item.add(new Label("recipients", currentEmail.getRecipients()));
item.add(new Label("templateType", currentEmail.getTemplateType()));
Expand Down

0 comments on commit ed86d34

Please sign in to comment.