Skip to content

Commit

Permalink
feat(ui): Make fields required for input dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheiLLeniumStudios committed Feb 26, 2023
1 parent a5fde35 commit 20ac4fe
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,14 @@ RegisterNetEvent("illenium-appearance:client:importOutfitCode", function()
type = "input",
label = _L("outfits.import.name.label"),
placeholder = _L("outfits.import.name.placeholder"),
default = _L("outfits.import.name.default")
default = _L("outfits.import.name.default"),
required = true
},
{
type = "input",
label = _L("outfits.import.code.label"),
placeholder = "XXXXXXXXXXXX"
placeholder = "XXXXXXXXXXXX",
required = true
}
})

Expand Down Expand Up @@ -379,7 +381,8 @@ RegisterNetEvent("illenium-appearance:client:saveOutfit", function()
{
type = "input",
label = _L("outfits.save.name.label"),
placeholder = _L("outfits.save.name.placeholder")
placeholder = _L("outfits.save.name.placeholder"),
required = true
}
})

Expand Down Expand Up @@ -615,6 +618,7 @@ RegisterNetEvent("illenium-appearance:client:SaveManagementOutfit", function(mTy
{
label = _L("outfits.save.name.label"),
type = "input",
required = true
},
{
label = _L("outfits.save.gender.label"),
Expand All @@ -627,7 +631,7 @@ RegisterNetEvent("illenium-appearance:client:SaveManagementOutfit", function(mTy
label = _L("outfits.save.gender.female"), value = "female"
}
},
default = "male"
default = "male",
},
{
label = _L("outfits.save.rank.label"),
Expand Down

0 comments on commit 20ac4fe

Please sign in to comment.