Allow wall mods to file hiatuses

This commit is contained in:
2024-02-29 02:14:42 -05:00
parent 0334dc1678
commit 15351b3c12
3 changed files with 11 additions and 7 deletions

View File

@ -69,7 +69,9 @@ export default function (props: {
body: JSON.stringify({
departments,
end,
hiatus: departments.includes("DM") ? isHiatus : undefined,
hiatus: ["DM", "WM"].find((d) => departments.includes(d))
? isHiatus
: undefined,
reason,
start,
}),
@ -147,7 +149,7 @@ export default function (props: {
))}
</VStack>
</CheckboxGroup>
{departments.includes("DM") ? (
{["DM", "WM"].find((d) => departments.includes(d)) ? (
<>
<br />
<br />
@ -156,8 +158,8 @@ export default function (props: {
value={JSON.stringify(isHiatus)}
>
<HStack>
<Radio value="false">Inactivity</Radio>
<Radio value="true">Hiatus</Radio>
<Radio value="false">Activity Decrease</Radio>
<Radio value="true">Inactivity/Hiatus</Radio>
</HStack>
</RadioGroup>
</>