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:
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user