Remove modpacks from mobile nav

This commit is contained in:
Jai A
2022-02-27 17:58:07 -07:00
parent de0e30de57
commit acb57b3e9c
2 changed files with 10 additions and 5 deletions

View File

@@ -139,10 +139,10 @@
<ModIcon /> <ModIcon />
<span>Mods</span> <span>Mods</span>
</NuxtLink> </NuxtLink>
<NuxtLink to="/modpacks" class="tab"> <!-- <NuxtLink to="/modpacks" class="tab">
<ModpackIcon /> <ModpackIcon />
<span>Modpacks</span> <span>Modpacks</span>
</NuxtLink> </NuxtLink>-->
<button class="tab" @click="toggleMobileMenu()"> <button class="tab" @click="toggleMobileMenu()">
<HamburgerIcon /> <HamburgerIcon />
<span>{{ isMobileMenuOpen ? 'Less' : 'More' }}</span> <span>{{ isMobileMenuOpen ? 'Less' : 'More' }}</span>

View File

@@ -125,17 +125,17 @@
accept="image/png,image/jpeg,image/gif,image/webp" accept="image/png,image/jpeg,image/gif,image/webp"
class="choose-image" class="choose-image"
prompt="Choose image or drag it here" prompt="Choose image or drag it here"
@change="showPreviewImage"
:disabled="(currentMember.permissions & EDIT_DETAILS) !== EDIT_DETAILS" :disabled="(currentMember.permissions & EDIT_DETAILS) !== EDIT_DETAILS"
@change="showPreviewImage"
/> />
<button <button
class="iconified-button" class="iconified-button"
:disabled="(currentMember.permissions & EDIT_DETAILS) !== EDIT_DETAILS"
@click=" @click="
icon = null icon = null
previewImage = null previewImage = null
iconChanged = true iconChanged = true
" "
:disabled="(currentMember.permissions & EDIT_DETAILS) !== EDIT_DETAILS"
> >
<TrashIcon /> <TrashIcon />
Reset Reset
@@ -570,7 +570,12 @@ export default {
) )
} }
this.$emit('update:featuredVersions', this.newProject) this.newProject.license = {
id: this.newProject.license.short,
url: this.newProject.license.url,
}
this.$emit('update:project', this.newProject)
this.isEditing = false this.isEditing = false