Merge server project header into project header (#5500)

This commit is contained in:
Prospector
2026-03-09 12:19:55 -07:00
committed by GitHub
parent 97051cc64d
commit c9c8079853
6 changed files with 68 additions and 119 deletions

View File

@@ -52,14 +52,14 @@
>
<ProjectBackgroundGradient :project="data" />
</Teleport>
<ServerProjectHeader
v-if="isServerProject"
<ProjectHeader
v-else
:project="data"
:project-v3="projectV3"
:ping="serverPing"
@contextmenu.prevent.stop="handleRightClick"
>
<template #actions>
<template v-if="isServerProject" #actions>
<ButtonStyled v-if="serverPlaying" size="large" color="red">
<button @click="handleStopServer">
<StopCircleIcon />
@@ -111,9 +111,7 @@
</OverflowMenu>
</ButtonStyled>
</template>
</ServerProjectHeader>
<ProjectHeader v-else :project="data" @contextmenu.prevent.stop="handleRightClick">
<template #actions>
<template v-else #actions>
<ButtonStyled size="large" color="brand">
<button
v-tooltip="installed ? `This project is already installed` : null"
@@ -238,7 +236,6 @@ import {
ProjectSidebarLinks,
ProjectSidebarServerInfo,
ProjectSidebarTags,
ServerProjectHeader,
} from '@modrinth/ui'
import { openUrl } from '@tauri-apps/plugin-opener'
import dayjs from 'dayjs'