Skip to content

Commit 62e51a5

Browse files
committed
fix: Fix port forwarding initialization status judgment issue
1 parent d1c2a69 commit 62e51a5

File tree

1 file changed

+2
-2
lines changed
  • frontend/src/views/host/firewall/status

1 file changed

+2
-2
lines changed

frontend/src/views/host/firewall/status/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{{ $t('commons.button.restart') }}
2222
</el-button>
2323
</template>
24-
<template v-if="!baseInfo.isInit">
24+
<template v-if="!baseInfo.isInit || (props.currentTab === 'forward' && !baseInfo.isBind)">
2525
<el-divider direction="vertical" />
2626
<el-button type="primary" link @click="onInit">
2727
{{ $t('commons.button.init') }}
@@ -71,7 +71,7 @@
7171
ref="dockerRef"
7272
v-model:withDockerRestart="withDockerRestart"
7373
@submit="onSubmit"
74-
:title="$t('firewall.firewallHelper', [i18n.global.t('commons.button.' + operation)])"
74+
:title="$t('firewall.firewallHelper', [$t('commons.button.' + operation)])"
7575
>
7676
<template #helper>
7777
<span>{{ $t('firewall.' + operation + 'FirewallHelper') }}</span>

0 commit comments

Comments
 (0)