Search in sources :

Example 1 with ManualMessageLogDto

use of de.symeda.sormas.api.messaging.ManualMessageLogDto in project SORMAS-Project by hzi-braunschweig.

the class SmsList method reload.

@Override
public void reload() {
    List<ManualMessageLogDto> messageLogs = FacadeProvider.getCaseFacade().getMessageLog(personReferenceDto.getUuid(), MessageType.SMS);
    if (!hasPhoneNumber) {
        Label noPhoneNumberLabel = new Label(I18nProperties.getCaption(Captions.messagesNoPhoneNumberForCasePerson));
        listLayout.addComponent(noPhoneNumberLabel);
    }
    setEntries(messageLogs);
    if (!messageLogs.isEmpty()) {
        showPage(1);
    } else {
        updatePaginationLayout();
        Label noMessageLabel = new Label(I18nProperties.getCaption(Captions.messagesNoSmsSentForCase));
        listLayout.addComponent(noMessageLabel);
    }
}
Also used : ManualMessageLogDto(de.symeda.sormas.api.messaging.ManualMessageLogDto) Label(com.vaadin.ui.Label)

Aggregations

Label (com.vaadin.ui.Label)1 ManualMessageLogDto (de.symeda.sormas.api.messaging.ManualMessageLogDto)1