Project

General

Profile

« Previous | Next » 

Revision de46814a

Added by Andreas Kohlbecker about 6 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));

Also available in: Unified diff