fix(frontend): make collection summary optional in editing (#3304)
Forgot to fix it here too in #3292. Reported by @falseresync
This commit is contained in:
parent
b3a664e0d4
commit
2c2a13b587
@ -365,29 +365,29 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {
|
import {
|
||||||
|
BoxIcon,
|
||||||
CalendarIcon,
|
CalendarIcon,
|
||||||
EditIcon,
|
EditIcon,
|
||||||
XIcon,
|
|
||||||
SaveIcon,
|
|
||||||
UploadIcon,
|
|
||||||
TrashIcon,
|
|
||||||
LinkIcon,
|
|
||||||
LockIcon,
|
|
||||||
GridIcon,
|
GridIcon,
|
||||||
ImageIcon,
|
ImageIcon,
|
||||||
ListIcon,
|
|
||||||
UpdatedIcon,
|
|
||||||
LibraryIcon,
|
LibraryIcon,
|
||||||
BoxIcon,
|
LinkIcon,
|
||||||
|
ListIcon,
|
||||||
|
LockIcon,
|
||||||
|
SaveIcon,
|
||||||
|
TrashIcon,
|
||||||
|
UpdatedIcon,
|
||||||
|
UploadIcon,
|
||||||
|
XIcon,
|
||||||
} from "@modrinth/assets";
|
} from "@modrinth/assets";
|
||||||
import {
|
import {
|
||||||
PopoutMenu,
|
|
||||||
FileInput,
|
|
||||||
DropdownSelect,
|
|
||||||
Avatar,
|
Avatar,
|
||||||
Button,
|
Button,
|
||||||
commonMessages,
|
commonMessages,
|
||||||
ConfirmModal,
|
ConfirmModal,
|
||||||
|
DropdownSelect,
|
||||||
|
FileInput,
|
||||||
|
PopoutMenu,
|
||||||
} from "@modrinth/ui";
|
} from "@modrinth/ui";
|
||||||
|
|
||||||
import { isAdmin } from "@modrinth/utils";
|
import { isAdmin } from "@modrinth/utils";
|
||||||
@ -651,7 +651,7 @@ async function saveChanges() {
|
|||||||
method: "PATCH",
|
method: "PATCH",
|
||||||
body: {
|
body: {
|
||||||
name: name.value,
|
name: name.value,
|
||||||
description: summary.value,
|
description: summary.value || null,
|
||||||
status: visibility.value,
|
status: visibility.value,
|
||||||
new_projects: newProjectIds,
|
new_projects: newProjectIds,
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user