🐛 fix: Update server and web version update descriptions to remove version prefix for clarity

This commit is contained in:
web@ppanel 2025-12-30 08:08:48 +00:00
parent c5dbd97e19
commit cbd6e29ded
4 changed files with 9 additions and 10 deletions

View File

@ -13,9 +13,9 @@
"systemServices": "System Services",
"update": "Update",
"updateFailed": "Update failed",
"updateServerDescription": "Are you sure you want to update the server version from V{{current}} to V{{latest}}?",
"updateServerDescription": "Are you sure you want to update the server version from {{current}} to {{latest}}?",
"updateSuccess": "Update completed successfully",
"updateWebDescription": "Are you sure you want to update the web version from V{{current}} to V{{latest}}?",
"updateWebDescription": "Are you sure you want to update the web version from {{current}} to {{latest}}?",
"userUpdateSuccess": "User updated successfully",
"webVersion": "Web Version"
}

View File

@ -13,9 +13,9 @@
"systemServices": "系统服务",
"update": "更新",
"updateFailed": "更新失败",
"updateServerDescription": "确定要将服务器版本从 V{{current}} 更新到 V{{latest}} 吗?",
"updateServerDescription": "确定要将服务器版本从 {{current}} 更新到 {{latest}} 吗?",
"updateSuccess": "更新成功",
"updateWebDescription": "确定要将前端版本从 V{{current}} 更新到 V{{latest}} 吗?",
"updateWebDescription": "确定要将前端版本从 {{current}} 更新到 {{latest}} 吗?",
"userUpdateSuccess": "用户端更新成功",
"webVersion": "前端版本"
}

View File

@ -80,7 +80,6 @@ export default function SystemVersionCard() {
staleTime: 0,
retry: 1,
});
console.log(webVersionInfo);
const updateServerMutation = useMutation({
mutationFn: async (serviceName: string) => {
@ -199,7 +198,7 @@ export default function SystemVersionCard() {
>
<Icon className="mr-1 h-3 w-3" icon="mdi:download" />
{hasWebNewVersion && webVersionInfo
? `${t("update", "Update")} V${webVersionInfo.latest_version}`
? `${t("update", "Update")} ${webVersionInfo.latest_version}`
: t("update", "Update")}
</Button>
</AlertDialogTrigger>
@ -212,9 +211,9 @@ export default function SystemVersionCard() {
{webVersionInfo
? t(
"updateWebDescription",
"Are you sure you want to update the web version from V{{current}} to V{{latest}}?",
"Are you sure you want to update the web version from {{current}} to {{latest}}?",
{
current: packageJson.version,
current: webVersionInfo.current_version,
latest: webVersionInfo.latest_version,
}
)
@ -278,7 +277,7 @@ export default function SystemVersionCard() {
{serverVersionInfo && moduleConfig
? t(
"updateServerDescription",
"Are you sure you want to update the server version from V{{current}} to V{{latest}}?",
"Are you sure you want to update the server version from {{current}} to {{latest}}?",
{
current:
moduleConfig.service_version ||

View File

@ -193,7 +193,7 @@ request.interceptors.request.use(
request.interceptors.response.use(
(response) => {
const { code } = response.data;
if (code !== 200) {
if (code !== 200 && code !== 0) {
handleError({
data: response.data,
config: {