Project

General

Profile

« Previous | Next » 

Revision de46814a

Added by Andreas Kohlbecker over 5 years ago

adding button descriptions to RegistrationItemNameAndTypeButtons

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkingsetPresenter.java
224 224
                        messageButton.setDescription("No point sending messages to your self.");
225 225
                    } else {
226 226
                        messageButton.setEnabled(true);
227
                        messageButton.setDescription("Open the messages dialog");
227
                        messageButton.setDescription("Open the messages dialog.");
228 228
                    }
229
                } else {
230
                    messageButton.setDescription("Sorry, only a curator can start a conversation.");
229 231
                }
230 232
                if(activeMessages){
231 233
                    messageButton.setEnabled(true);
232 234
                    messageButton.addStyleName(EditValoTheme.BUTTON_HIGHLITE);
233
                    messageButton.setDescription("There are active messages for you!");
235
                    String who = currentUserIsSubmitter ? "curator" : "submitter";
236
                    messageButton.setDescription("The " + who + " is looking forward to your reply.");
237

  
234 238
                }
235 239
            } catch (ExternalServiceException e) {
236 240
                messageButton.setComponentError(new SystemError(e.getMessage(), e));
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorksetViewBean.java
322 322

  
323 323
        Button blockingRegistrationButton = regItemButtons.getBlockingRegistrationButton();
324 324
        blockingRegistrationButton.setStyleName(ValoTheme.BUTTON_TINY);
325
        blockingRegistrationButton.setDescription("No blocking registrations");
325 326
        if(dto.isBlocked()){
326
           blockingRegistrationButton.setEnabled(true);
327
            blockingRegistrationButton.setEnabled(true);
328
            blockingRegistrationButton.setDescription("This registration is currently blocked by other registrations");
327 329
            blockingRegistrationButton.addStyleName(EditValoTheme.BUTTON_HIGHLITE);
328 330
            blockingRegistrationButton.addClickListener(e -> getViewEventBus().publish(
329 331
                    this,

Also available in: Unified diff