mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-17 12:58:51 +08:00
fix: 修改未激活状态下信息内容 (#7112)
This commit is contained in:
parent
ee0e17a496
commit
d068cc40f0
4 changed files with 10 additions and 6 deletions
|
|
@ -1691,6 +1691,8 @@ const message = {
|
||||||
Disable: 'Disabled',
|
Disable: 'Disabled',
|
||||||
lostHelper:
|
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.',
|
'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',
|
quickUpdate: 'Quick Update',
|
||||||
import: 'Import',
|
import: 'Import',
|
||||||
power: 'Authorize',
|
power: 'Authorize',
|
||||||
|
|
|
||||||
|
|
@ -1568,6 +1568,7 @@ const message = {
|
||||||
Enable: '已啟用',
|
Enable: '已啟用',
|
||||||
Disable: '未啟用',
|
Disable: '未啟用',
|
||||||
lostHelper: '許可證已達到最大重試次數,請手動點擊同步按鈕,以確保專業版功能正常使用。',
|
lostHelper: '許可證已達到最大重試次數,請手動點擊同步按鈕,以確保專業版功能正常使用。',
|
||||||
|
disableHelper: '許可證同步驗證失敗,請手動點擊同步按鈕,以確保專業版功能正常使用。',
|
||||||
quickUpdate: '快速更新',
|
quickUpdate: '快速更新',
|
||||||
import: '導入',
|
import: '導入',
|
||||||
power: '授 權',
|
power: '授 權',
|
||||||
|
|
|
||||||
|
|
@ -1569,6 +1569,7 @@ const message = {
|
||||||
Enable: '已激活',
|
Enable: '已激活',
|
||||||
Disable: '未激活',
|
Disable: '未激活',
|
||||||
lostHelper: '许可证已达到最大重试次数,请手动点击同步按钮,以确保专业版功能正常使用。',
|
lostHelper: '许可证已达到最大重试次数,请手动点击同步按钮,以确保专业版功能正常使用。',
|
||||||
|
disableHelper: '许可证同步验证失败,请手动点击同步按钮,以确保专业版功能正常使用。',
|
||||||
quickUpdate: '快速更新',
|
quickUpdate: '快速更新',
|
||||||
import: '导入',
|
import: '导入',
|
||||||
power: '授 权',
|
power: '授 权',
|
||||||
|
|
|
||||||
|
|
@ -43,11 +43,7 @@
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item :label="$t('license.productStatus')">
|
<el-descriptions-item :label="$t('license.productStatus')">
|
||||||
<div v-if="license.status">
|
<div v-if="license.status">
|
||||||
<el-tooltip
|
<el-tooltip v-if="license.message" :content="license.message" placement="top">
|
||||||
v-if="license.status.indexOf('Lost') !== -1"
|
|
||||||
:content="license.message"
|
|
||||||
placement="top"
|
|
||||||
>
|
|
||||||
<el-tag type="info">
|
<el-tag type="info">
|
||||||
{{ $t('license.' + license.status) }}
|
{{ $t('license.' + license.status) }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
|
|
@ -57,7 +53,7 @@
|
||||||
<span v-else>-</span>
|
<span v-else>-</span>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item class="descriptions" :label="$t('commons.table.message')">
|
<el-descriptions-item class="descriptions" :label="$t('commons.table.message')">
|
||||||
{{ showSync() ? $t('license.lostHelper') : '' }}
|
{{ showSync() ? loadInfo() : '' }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -146,6 +142,10 @@ const toHalo = () => {
|
||||||
window.open('https://www.lxware.cn/1panel' + '', '_blank', 'noopener,noreferrer');
|
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 () => {
|
const onSync = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
await syncLicense()
|
await syncLicense()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue