节点市场如果节点已存在就显示已安装

This commit is contained in:
jingrow 2025-11-03 03:01:41 +08:00
parent 27063e5117
commit c0b4367054
3 changed files with 4 additions and 3 deletions

View File

@ -897,6 +897,7 @@
"Repository": "仓库",
"Install": "安装",
"Update": "更新",
"Installed": "已安装",
"Loading applications...": "正在加载应用...",
"No applications found": "未找到应用",
"View details feature coming soon": "查看详情功能即将推出",

View File

@ -19,10 +19,10 @@
>
<template #icon>
<n-icon>
<Icon :icon="isCurrentNodeInstalled ? 'tabler:refresh' : 'tabler:download'" />
<Icon :icon="isCurrentNodeInstalled ? 'tabler:check' : 'tabler:download'" />
</n-icon>
</template>
{{ isCurrentNodeInstalled ? t('Update') : t('Install') }}
{{ isCurrentNodeInstalled ? t('Installed') : t('Install') }}
</n-button>
</div>
</div>

View File

@ -95,7 +95,7 @@
type="warning"
@click="installNode(node)"
>
{{ t('Update') }}
{{ t('Installed') }}
</n-button>
<n-button
v-else