Skip to content

Commit

Permalink
added mandatory field for receiver field
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-Wei-Jie committed Oct 29, 2024
1 parent fae35c5 commit faeba09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/.h2.server.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#H2 Server Properties
#Sun Oct 27 18:54:30 SGT 2024
#Tue Oct 29 22:40:57 SGT 2024
0=JHipster H2 (Disk)|org.h2.Driver|jdbc\:h2\:file\:./target/h2db/db/scaleup|scaleup
webSSL=false
webAllowOthers=true
webPort=8092
webSSL=false
8 changes: 7 additions & 1 deletion src/main/webapp/app/entities/message/message-update.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,13 @@ export const MessageUpdate = () => {
{currentUserId}
</option>
</ValidatedField>
<ValidatedField id="message-receiverProfile" name="receiverProfile" label="Receiver Profile" type="select">
<ValidatedField
id="message-receiverProfile"
name="receiverProfile"
label="Receiver Profile"
type="select"
validate={{ required: { value: true, message: 'This field is required.' } }}
>
<option value="" key="0" />
{users.map(otherEntity => (
<option value={otherEntity.id} key={otherEntity.id}>
Expand Down

0 comments on commit faeba09

Please sign in to comment.