mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-23 18:49:21 +08:00
fix: 修改未激活状态下信息内容 (#7112)
This commit is contained in:
parent
ee0e17a496
commit
d068cc40f0
@ -1691,6 +1691,8 @@ const message = {
|
||||
Disable: 'Disabled',
|
||||
lostHelper:
|
||||
'The license has reached the maximum number of retry attempts. Please manually click the sync button to ensure the professional version features are functioning properly.',
|
||||
disableHelper:
|
||||
'License synchronization verification failed. Please manually click the sync button to ensure that the professional version features are functioning properly.',
|
||||
quickUpdate: 'Quick Update',
|
||||
import: 'Import',
|
||||
power: 'Authorize',
|
||||
|
@ -1568,6 +1568,7 @@ const message = {
|
||||
Enable: '已啟用',
|
||||
Disable: '未啟用',
|
||||
lostHelper: '許可證已達到最大重試次數,請手動點擊同步按鈕,以確保專業版功能正常使用。',
|
||||
disableHelper: '許可證同步驗證失敗,請手動點擊同步按鈕,以確保專業版功能正常使用。',
|
||||
quickUpdate: '快速更新',
|
||||
import: '導入',
|
||||
power: '授 權',
|
||||
|
@ -1569,6 +1569,7 @@ const message = {
|
||||
Enable: '已激活',
|
||||
Disable: '未激活',
|
||||
lostHelper: '许可证已达到最大重试次数,请手动点击同步按钮,以确保专业版功能正常使用。',
|
||||
disableHelper: '许可证同步验证失败,请手动点击同步按钮,以确保专业版功能正常使用。',
|
||||
quickUpdate: '快速更新',
|
||||
import: '导入',
|
||||
power: '授 权',
|
||||
|
@ -43,11 +43,7 @@
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :label="$t('license.productStatus')">
|
||||
<div v-if="license.status">
|
||||
<el-tooltip
|
||||
v-if="license.status.indexOf('Lost') !== -1"
|
||||
:content="license.message"
|
||||
placement="top"
|
||||
>
|
||||
<el-tooltip v-if="license.message" :content="license.message" placement="top">
|
||||
<el-tag type="info">
|
||||
{{ $t('license.' + license.status) }}
|
||||
</el-tag>
|
||||
@ -57,7 +53,7 @@
|
||||
<span v-else>-</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item class="descriptions" :label="$t('commons.table.message')">
|
||||
{{ showSync() ? $t('license.lostHelper') : '' }}
|
||||
{{ showSync() ? loadInfo() : '' }}
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</div>
|
||||
@ -146,6 +142,10 @@ const toHalo = () => {
|
||||
window.open('https://www.lxware.cn/1panel' + '', '_blank', 'noopener,noreferrer');
|
||||
};
|
||||
|
||||
const loadInfo = () => {
|
||||
return license.status === 'Lost' ? i18n.global.t('license.lostHelper') : i18n.global.t('license.disableHelper');
|
||||
};
|
||||
|
||||
const onSync = async () => {
|
||||
loading.value = true;
|
||||
await syncLicense()
|
||||
|
Loading…
Reference in New Issue
Block a user