mirror of
https://github.com/modrinth/code.git
synced 2026-08-27 18:14:49 +00:00
qa: content (#7184)
* qa: content card improvements for server panel * fix: server install icon bug * qa: 1 * fix: lint * qa: 2
This commit is contained in:
@@ -39,7 +39,7 @@ export interface ServerInstallContext {
|
||||
project: Labrinth.Projects.v3.Project,
|
||||
modpackVersionId: string | null,
|
||||
callback?: () => void,
|
||||
) => void
|
||||
) => Promise<void>
|
||||
>,
|
||||
) => void
|
||||
setUpdateToPlayModal: (
|
||||
@@ -84,7 +84,7 @@ export function createServerInstall(opts: {
|
||||
project: Labrinth.Projects.v3.Project,
|
||||
modpackVersionId: string | null,
|
||||
callback?: () => void,
|
||||
) => void
|
||||
) => Promise<void>
|
||||
> | null = null
|
||||
let updateToPlayModalRef: ModalRef<
|
||||
(instance: GameInstance, activeVersionId: string | null, callback?: () => void) => void
|
||||
@@ -246,10 +246,10 @@ export function createServerInstall(opts: {
|
||||
project_id: contentProjectId,
|
||||
version_id: contentVersionId,
|
||||
title: project.title,
|
||||
icon_url: project.icon_url,
|
||||
},
|
||||
{
|
||||
name: project.title,
|
||||
iconPath: project.icon_url ?? null,
|
||||
link: {
|
||||
type: 'server_project_modpack',
|
||||
server_project_id: serverProjectId,
|
||||
@@ -314,7 +314,7 @@ export function createServerInstall(opts: {
|
||||
return
|
||||
}
|
||||
if (isModpack && !instance) {
|
||||
installToPlayModalRef?.show(projectV3, modpackVersionId, async () => {
|
||||
await installToPlayModalRef?.show(projectV3, modpackVersionId, async () => {
|
||||
const newInstance = await findInstalledInstance(project.id)
|
||||
if (!newInstance) return
|
||||
showModpackInstallSuccess(newInstance, serverAddress)
|
||||
|
||||
Reference in New Issue
Block a user