节点市场如果节点已存在就显示已安装
This commit is contained in:
parent
27063e5117
commit
c0b4367054
@ -897,6 +897,7 @@
|
|||||||
"Repository": "仓库",
|
"Repository": "仓库",
|
||||||
"Install": "安装",
|
"Install": "安装",
|
||||||
"Update": "更新",
|
"Update": "更新",
|
||||||
|
"Installed": "已安装",
|
||||||
"Loading applications...": "正在加载应用...",
|
"Loading applications...": "正在加载应用...",
|
||||||
"No applications found": "未找到应用",
|
"No applications found": "未找到应用",
|
||||||
"View details feature coming soon": "查看详情功能即将推出",
|
"View details feature coming soon": "查看详情功能即将推出",
|
||||||
|
|||||||
@ -19,10 +19,10 @@
|
|||||||
>
|
>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<n-icon>
|
<n-icon>
|
||||||
<Icon :icon="isCurrentNodeInstalled ? 'tabler:refresh' : 'tabler:download'" />
|
<Icon :icon="isCurrentNodeInstalled ? 'tabler:check' : 'tabler:download'" />
|
||||||
</n-icon>
|
</n-icon>
|
||||||
</template>
|
</template>
|
||||||
{{ isCurrentNodeInstalled ? t('Update') : t('Install') }}
|
{{ isCurrentNodeInstalled ? t('Installed') : t('Install') }}
|
||||||
</n-button>
|
</n-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -95,7 +95,7 @@
|
|||||||
type="warning"
|
type="warning"
|
||||||
@click="installNode(node)"
|
@click="installNode(node)"
|
||||||
>
|
>
|
||||||
{{ t('Update') }}
|
{{ t('Installed') }}
|
||||||
</n-button>
|
</n-button>
|
||||||
<n-button
|
<n-button
|
||||||
v-else
|
v-else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user