You've already forked AstralRinth
forked from didirus/AstralRinth
fix(frontend): make collection summary optional (#3292)
Reported by @falseresync
This commit is contained in:
@@ -19,10 +19,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
<label for="additional-information" class="flex flex-col gap-1">
|
<label for="additional-information" class="flex flex-col gap-1">
|
||||||
<span class="text-lg font-semibold text-contrast">
|
<span class="text-lg font-semibold text-contrast"> Summary </span>
|
||||||
Summary
|
|
||||||
<span class="text-brand-red">*</span>
|
|
||||||
</span>
|
|
||||||
<span>A sentence or two that describes your collection.</span>
|
<span>A sentence or two that describes your collection.</span>
|
||||||
</label>
|
</label>
|
||||||
<div class="textarea-wrapper">
|
<div class="textarea-wrapper">
|
||||||
@@ -52,8 +49,8 @@
|
|||||||
</NewModal>
|
</NewModal>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { XIcon, PlusIcon } from "@modrinth/assets";
|
import { PlusIcon, XIcon } from "@modrinth/assets";
|
||||||
import { NewModal, ButtonStyled } from "@modrinth/ui";
|
import { ButtonStyled, NewModal } from "@modrinth/ui";
|
||||||
|
|
||||||
const router = useNativeRouter();
|
const router = useNativeRouter();
|
||||||
|
|
||||||
@@ -78,7 +75,7 @@ async function create() {
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
body: {
|
body: {
|
||||||
name: name.value.trim(),
|
name: name.value.trim(),
|
||||||
description: description.value.trim(),
|
description: description.value.trim() || undefined,
|
||||||
projects: props.projectIds,
|
projects: props.projectIds,
|
||||||
},
|
},
|
||||||
apiVersion: 3,
|
apiVersion: 3,
|
||||||
|
|||||||
Reference in New Issue
Block a user