feat: handling mrpack with no loaders (#5363)

* handle modpack upload with no loaders

* restrict loaders for modpack

* actually, dont allow modpack loaders to be editable

* revert loader picker changes
This commit is contained in:
Truman Gao
2026-02-18 10:43:07 -07:00
committed by GitHub
parent 9f558404bd
commit 0e752ab415
4 changed files with 21 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="flex flex-col gap-2.5">
<span class="font-semibold text-contrast">Loaders <span class="text-red">*</span></span>
<span class="font-semibold text-contrast">Loaders</span>
<Chips
v-model="loaderGroup"

View File

@@ -77,7 +77,13 @@
</TagItem>
</template>
<span v-if="!draftVersion.loaders.length">No loaders selected.</span>
<TagItem
v-if="!draftVersionLoaders.length && projectType === 'modpack'"
class="border !border-solid border-surface-5 hover:no-underline"
>
No mod loader
</TagItem>
<span v-else-if="!draftVersionLoaders.length">No loaders selected.</span>
</div>
</div>
</div>