Project

General

Profile

« Previous | Next » 

Revision 16c4d668

Added by Andreas Kohlbecker about 6 years ago

renaming RegistationDTO.messages to validationProblems

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorksetViewBean.java
344 344

  
345 345
        Button messageButton = new Button(FontAwesome.COMMENT);
346 346
        messageButton.setStyleName(ValoTheme.BUTTON_TINY); //  + " " + RegistrationStyles.STYLE_FRIENDLY_FOREGROUND);
347
        if(dto.getMessages().isEmpty()){
347

  
348
        if(dto.getValidationProblems().isEmpty()){
348 349
            messageButton.setEnabled(false);
349 350
        } else {
350 351
            messageButton.addClickListener(e -> getViewEventBus().publish(this,
......
357 358
                    )
358 359
                );
359 360
        }
360
        messageButton.setCaption("<span class=\"" + RegistrationStyles.BUTTON_BADGE +"\"> " + dto.getMessages().size() + "</span>");
361
        messageButton.setCaption("<span class=\"" + RegistrationStyles.BUTTON_BADGE +"\"> " + dto.getValidationProblems().size() + "</span>");
361 362
        messageButton.setCaptionAsHtml(true);
362 363
        buttonGroup.addComponent(messageButton);
363 364

  

Also available in: Unified diff