Fix map quality setting for default maps
This commit is contained in:
parent
1ac95e0a0f
commit
2a3deed739
@ -110,32 +110,35 @@ function MapSettings({
|
|||||||
Show Grid
|
Show Grid
|
||||||
</Label>
|
</Label>
|
||||||
</Flex>
|
</Flex>
|
||||||
<Flex my={2} sx={{ alignItems: "center" }}>
|
{map.type !== "default" && (
|
||||||
<Box sx={{ width: "50%" }}>
|
<Flex my={2} sx={{ alignItems: "center" }}>
|
||||||
<Label>Map Quality</Label>
|
<Box sx={{ width: "50%" }}>
|
||||||
<Select
|
<Label>Map Quality</Label>
|
||||||
my={1}
|
<Select
|
||||||
value={!mapEmpty && map.quality}
|
my={1}
|
||||||
disabled={mapEmpty || map.type === "default"}
|
value={!mapEmpty && map.quality}
|
||||||
onChange={(e) => onSettingsChange("quality", e.target.value)}
|
disabled={mapEmpty}
|
||||||
>
|
onChange={(e) => onSettingsChange("quality", e.target.value)}
|
||||||
{qualitySettings.map((quality) => (
|
>
|
||||||
<option
|
{qualitySettings.map((quality) => (
|
||||||
key={quality.id}
|
<option
|
||||||
value={quality.id}
|
key={quality.id}
|
||||||
disabled={
|
value={quality.id}
|
||||||
quality.id !== "original" && !map.resolutions[quality.id]
|
disabled={
|
||||||
}
|
quality.id !== "original" &&
|
||||||
>
|
!map.resolutions[quality.id]
|
||||||
{quality.name}
|
}
|
||||||
</option>
|
>
|
||||||
))}
|
{quality.name}
|
||||||
</Select>
|
</option>
|
||||||
</Box>
|
))}
|
||||||
<Label sx={{ width: "50%" }} ml={2}>
|
</Select>
|
||||||
Size: XX
|
</Box>
|
||||||
</Label>
|
<Label sx={{ width: "50%" }} ml={2}>
|
||||||
</Flex>
|
Size: XX
|
||||||
|
</Label>
|
||||||
|
</Flex>
|
||||||
|
)}
|
||||||
<Divider fill />
|
<Divider fill />
|
||||||
<Box my={2} sx={{ flexGrow: 1 }}>
|
<Box my={2} sx={{ flexGrow: 1 }}>
|
||||||
<Label>Allow Others to Edit</Label>
|
<Label>Allow Others to Edit</Label>
|
||||||
|
Loading…
Reference in New Issue
Block a user