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