Allow supervisors to write a note associated with their projects #8

Merged
ansv7779 merged 10 commits from 3399-supervisor-project-note into develop 2024-07-10 13:43:27 +02:00
Showing only changes of commit f5a7b592c0 - Show all commits

View File

@ -24,6 +24,7 @@ import se.su.dsv.scipro.project.ProjectNoteService;
import se.su.dsv.scipro.system.User; import se.su.dsv.scipro.system.User;
import java.time.LocalTime; import java.time.LocalTime;
import java.time.temporal.ChronoUnit;
public class ProjectNoteColumn extends AbstractExportableColumn<Project, String> { public class ProjectNoteColumn extends AbstractExportableColumn<Project, String> {
@Inject @Inject
@ -89,7 +90,7 @@ public class ProjectNoteColumn extends AbstractExportableColumn<Project, String>
user.getObject(), user.getObject(),
note.getObject() note.getObject()
); );
success("Note saved at " + LocalTime.now()); success("Note saved at " + LocalTime.now().truncatedTo(ChronoUnit.SECONDS));
} }
}; };
add(form); add(form);