web: remove TargetAssetID
This commit is contained in:
parent
9740cbe91a
commit
0e29ca98dd
@ -1,6 +1,6 @@
|
|||||||
"use client"
|
"use client"
|
||||||
|
|
||||||
import { FormControl, FormControlLabel, Button, TextField, Checkbox } from "@mui/material"
|
import { Button, TextField } from "@mui/material"
|
||||||
|
|
||||||
import GameSelection from "./_game";
|
import GameSelection from "./_game";
|
||||||
import SendIcon from '@mui/icons-material/Send';
|
import SendIcon from '@mui/icons-material/Send';
|
||||||
@ -15,7 +15,6 @@ interface SubmissionPayload {
|
|||||||
GameID: number;
|
GameID: number;
|
||||||
AssetID: number;
|
AssetID: number;
|
||||||
AssetVersion: number;
|
AssetVersion: number;
|
||||||
TargetAssetID: number;
|
|
||||||
}
|
}
|
||||||
interface IdResponse {
|
interface IdResponse {
|
||||||
ID: number;
|
ID: number;
|
||||||
@ -23,7 +22,6 @@ interface IdResponse {
|
|||||||
|
|
||||||
export default function SubmissionInfoPage() {
|
export default function SubmissionInfoPage() {
|
||||||
const [game, setGame] = useState(1);
|
const [game, setGame] = useState(1);
|
||||||
const [isFixingMap, setIsFixingMap] = useState(false);
|
|
||||||
|
|
||||||
const handleSubmit = async (event: React.FormEvent<HTMLFormElement>) => {
|
const handleSubmit = async (event: React.FormEvent<HTMLFormElement>) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
@ -37,7 +35,6 @@ export default function SubmissionInfoPage() {
|
|||||||
GameID: game,
|
GameID: game,
|
||||||
AssetID: Number((formData.get("asset-id") as string) ?? "0"),
|
AssetID: Number((formData.get("asset-id") as string) ?? "0"),
|
||||||
AssetVersion: 0,
|
AssetVersion: 0,
|
||||||
TargetAssetID: isFixingMap ? Number((formData.get("target-asset-id") as string) ?? "0") : 0,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log(payload)
|
console.log(payload)
|
||||||
@ -84,15 +81,6 @@ export default function SubmissionInfoPage() {
|
|||||||
<TextField className="form-field" id="asset-id" name="asset-id" label="Asset ID" variant="outlined"/>
|
<TextField className="form-field" id="asset-id" name="asset-id" label="Asset ID" variant="outlined"/>
|
||||||
{/* I think this is Quat's job to figure this one out (to be set when someone clicks review(?)) */} {/* <TextField className="form-field" id="asset-version" label="Asset Version" variant="outlined"/> */}
|
{/* I think this is Quat's job to figure this one out (to be set when someone clicks review(?)) */} {/* <TextField className="form-field" id="asset-version" label="Asset Version" variant="outlined"/> */}
|
||||||
<GameSelection game={game} setGame={setGame} />
|
<GameSelection game={game} setGame={setGame} />
|
||||||
<FormControl>
|
|
||||||
<FormControlLabel control={<Checkbox sx={{
|
|
||||||
color: "#646464",
|
|
||||||
'&.Mui-checked': {
|
|
||||||
color: "#66BB6A",
|
|
||||||
},
|
|
||||||
}} onChange={(e) => setIsFixingMap(e.target.checked)} />} label="Fixing an Existing Map?" />
|
|
||||||
</FormControl>
|
|
||||||
<TextField className="form-field" id="target-asset-id" name="target-asset-id" label="Target Asset ID (group model)" variant="outlined"/>
|
|
||||||
<span className="spacer form-spacer"></span>
|
<span className="spacer form-spacer"></span>
|
||||||
<Button type="submit" variant="contained" startIcon={<SendIcon/>} sx={{
|
<Button type="submit" variant="contained" startIcon={<SendIcon/>} sx={{
|
||||||
width: "400px",
|
width: "400px",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user