Skip to content

Commit 9edba46

Browse files
qoxown12dhslove
authored andcommitted
단순 오류 수정
1 parent 04d7a6d commit 9edba46

File tree

2 files changed

+41
-40
lines changed

2 files changed

+41
-40
lines changed

ui/src/views/infra/network/IpRangesTabGuest.vue

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -17,43 +17,6 @@
1717

1818
<template>
1919
<a-spin :spinning="componentLoading">
20-
<a-button
21-
:disabled="!('createGuestNetworkIpv6Prefix' in $store.getters.apis)"
22-
type="dashed"
23-
style="margin-bottom: 20px; width: 100%"
24-
@click="handleOpenAddIpv6PrefixForm()">
25-
<template #icon><plus-outlined /></template>
26-
{{ $t('label.add.ip.v6.prefix') }}
27-
</a-button>
28-
<a-table
29-
style="overflow-y: auto"
30-
size="small"
31-
:columns="ipv6Columns"
32-
:dataSource="ipv6Prefixes"
33-
:rowKey="record => record.id + record.prefix"
34-
:pagination="false"
35-
>
36-
<template #bodyCell="{ column, record }">
37-
<template v-if="column.key === 'allocated'">
38-
{{ record.usedsubnets + '/' + record.totalsubnets }}
39-
</template>
40-
<template v-if="column.key === 'actions'">
41-
<div class="actions">
42-
<tooltip-button
43-
tooltipPlacement="bottom"
44-
:tooltip="$t('label.delete.ip.v6.prefix')"
45-
type="primary"
46-
icon="delete-outlined"
47-
:danger="true"
48-
@click="handleDeleteIpv6Prefix(record)"
49-
:disabled="!('deleteGuestNetworkIpv6Prefix' in $store.getters.apis)" />
50-
</div>
51-
</template>
52-
</template>
53-
</a-table>
54-
<br>
55-
<br>
56-
5720
<a-button
5821
:disabled="!('createNetwork' in $store.getters.apis)"
5922
type="dashed"
@@ -97,6 +60,44 @@
9760
</template>
9861
</a-pagination>
9962

63+
<br>
64+
<br>
65+
66+
<a-button
67+
:disabled="!('createGuestNetworkIpv6Prefix' in $store.getters.apis)"
68+
type="dashed"
69+
style="margin-bottom: 20px; width: 100%"
70+
@click="handleOpenAddIpv6PrefixForm()">
71+
<template #icon><plus-outlined /></template>
72+
{{ $t('label.add.ip.v6.prefix') }}
73+
</a-button>
74+
<a-table
75+
style="overflow-y: auto"
76+
size="small"
77+
:columns="ipv6Columns"
78+
:dataSource="ipv6Prefixes"
79+
:rowKey="record => record.id + record.prefix"
80+
:pagination="false"
81+
>
82+
<template #bodyCell="{ column, record }">
83+
<template v-if="column.key === 'allocated'">
84+
{{ record.usedsubnets + '/' + record.totalsubnets }}
85+
</template>
86+
<template v-if="column.key === 'actions'">
87+
<div class="actions">
88+
<tooltip-button
89+
tooltipPlacement="bottom"
90+
:tooltip="$t('label.delete.ip.v6.prefix')"
91+
type="primary"
92+
icon="delete-outlined"
93+
:danger="true"
94+
@click="handleDeleteIpv6Prefix(record)"
95+
:disabled="!('deleteGuestNetworkIpv6Prefix' in $store.getters.apis)" />
96+
</div>
97+
</template>
98+
</template>
99+
</a-table>
100+
100101
<a-modal
101102
v-if="showCreateForm"
102103
:visible="showCreateForm"

ui/src/views/network/NicsTab.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
</span>
117117
</a-select-option>
118118
</a-select>
119-
<p class="modal-form__label">{{ $t('label.publicip') }}:</p>
119+
<p class="modal-form__label">{{ $t('label.ipaddress') }}:</p>
120120
<a-input v-model:value="addNetworkData.ip"></a-input>
121121
<br>
122122
<a-checkbox v-model:checked="addNetworkData.makedefault">
@@ -144,7 +144,7 @@
144144

145145
<a-form @finish="submitUpdateIP" v-ctrl-enter="submitUpdateIP">
146146
<div class="modal-form">
147-
<p class="modal-form__label">{{ $t('label.publicip') }}:</p>
147+
<p class="modal-form__label">{{ $t('label.ipaddress') }}:</p>
148148
<a-select
149149
v-if="editNicResource.type==='Shared'"
150150
v-model:value="editIpAddressValue"
@@ -187,7 +187,7 @@
187187
<a-divider />
188188
<div v-ctrl-enter="submitSecondaryIP">
189189
<div class="modal-form">
190-
<p class="modal-form__label">{{ $t('label.publicip') }}:</p>
190+
<p class="modal-form__label">{{ $t('label.ipaddress') }}:</p>
191191
<a-select
192192
v-if="editNicResource.type==='Shared'"
193193
v-model:value="newSecondaryIp"

0 commit comments

Comments
 (0)