fix: Fix port forwarding initialization status judgment issue (#11276)

Refs #11267
This commit is contained in:
ssongliu 2025-12-09 17:38:57 +08:00 committed by GitHub
parent 9aa3caab16
commit 307029272e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,7 +21,7 @@
{{ $t('commons.button.restart') }}
</el-button>
</template>
<template v-if="!baseInfo.isInit">
<template v-if="!baseInfo.isInit || (props.currentTab === 'forward' && !baseInfo.isBind)">
<el-divider direction="vertical" />
<el-button type="primary" link @click="onInit">
{{ $t('commons.button.init') }}
@ -71,7 +71,7 @@
ref="dockerRef"
v-model:withDockerRestart="withDockerRestart"
@submit="onSubmit"
:title="$t('firewall.firewallHelper', [i18n.global.t('commons.button.' + operation)])"
:title="$t('firewall.firewallHelper', [$t('commons.button.' + operation)])"
>
<template #helper>
<span>{{ $t('firewall.' + operation + 'FirewallHelper') }}</span>