Skip to content
This repository was archived by the owner on Dec 29, 2023. It is now read-only.

Commit b48edff

Browse files
committed
Added tooltip to the ROAs Max Length column and removed resources headers
1 parent b24e666 commit b48edff

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

src/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"children": "Children",
6464
"handle": "Handle",
6565
"maxLength": "Max Length",
66+
"maxLengthTooltip": "If max length is not specified (-), it defaults to the prefix length.",
6667
"confirmation": {
6768
"title": "Warning",
6869
"message": "This will remove the ROA. Continue?",

src/locales/pt.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"children": "Filhos",
6464
"handle": "Identificador",
6565
"maxLength": "Comprimento máximo",
66+
"maxLengthTooltip": "If max length is not specified (-), it defaults to the prefix length.",
6667
"confirmation": {
6768
"title": "Aviso",
6869
"message": "Esta operação irá remover a ROA. Continuar?",

src/views/CADetails.vue

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,20 @@
5555
>
5656
<el-table-column prop="asn" label="ASN"></el-table-column>
5757
<el-table-column prop="prefix" label="Prefix"></el-table-column>
58-
<el-table-column
59-
prop="max_length"
60-
:label="$t('caDetails.maxLength')"
61-
></el-table-column>
58+
<el-table-column prop="max_length">
59+
<template slot="header">
60+
<el-tooltip
61+
effect="dark"
62+
:content="$t('caDetails.maxLengthTooltip')"
63+
placement="top"
64+
>
65+
<span>{{ $t("caDetails.maxLength") }}</span>
66+
</el-tooltip>
67+
</template>
68+
<template slot-scope="scope">
69+
{{ scope.row.max_length ? scope.row.max_length : "-" }}
70+
</template>
71+
</el-table-column>
6272
<el-table-column label width="80">
6373
<template slot-scope="scope">
6474
<el-button
@@ -106,6 +116,7 @@
106116
size="small"
107117
v-if="resourcesArray.length"
108118
:data="resourcesArray"
119+
:show-header="false"
109120
style="width: 100%"
110121
>
111122
<el-table-column

0 commit comments

Comments
 (0)