fix: misc server projects fixes (#5537)
* fix: add server to instance modal opens slow * fix: creators section org doesnt display for project pages in app * feat: separate modpacks and servers tabs in instances library
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
/>
|
||||
<ProjectSidebarTags :project="data" class="project-sidebar-section" />
|
||||
<ProjectSidebarCreators
|
||||
:organization="null"
|
||||
:organization="organization"
|
||||
:members="members"
|
||||
:org-link="(slug) => `https://modrinth.com/organization/${slug}`"
|
||||
:user-link="(username) => `https://modrinth.com/user/${username}`"
|
||||
@@ -244,6 +244,7 @@ import ContextMenu from '@/components/ui/ContextMenu.vue'
|
||||
import InstanceIndicator from '@/components/ui/InstanceIndicator.vue'
|
||||
import NavTabs from '@/components/ui/NavTabs.vue'
|
||||
import {
|
||||
get_organization,
|
||||
get_project,
|
||||
get_project_v3,
|
||||
get_team,
|
||||
@@ -282,6 +283,7 @@ const data = shallowRef(null)
|
||||
const versions = shallowRef([])
|
||||
const members = shallowRef([])
|
||||
const categories = shallowRef([])
|
||||
const organization = shallowRef(null)
|
||||
const instance = ref(null)
|
||||
const instanceProjects = ref(null)
|
||||
|
||||
@@ -387,6 +389,10 @@ async function fetchProjectData() {
|
||||
}
|
||||
}
|
||||
|
||||
if (project.organization) {
|
||||
organization.value = await get_organization(project.organization).catch(handleError)
|
||||
}
|
||||
|
||||
isServerProject.value = projectV3.value?.minecraft_server != null
|
||||
serverStatusOnline.value = !!projectV3.value?.minecraft_java_server?.ping?.data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user