Skip to content

Commit c40011e

Browse files
Better hover label and message for generate API/secret keys form
1 parent 941cc83 commit c40011e

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

ui/public/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
"label.action.expunge.instance": "Expunge instance",
124124
"label.action.force.reconnect": "Force reconnect",
125125
"label.action.generate.keys": "Generate keys",
126+
"label.action.generate.api.secret.keys": "Generate New API/Secret Keys",
126127
"label.action.get.diagnostics": "Get diagnostics data",
127128
"label.action.health.monitor": "Health monitor",
128129
"label.action.image.store.read.only": "Make image store read-only",
@@ -2671,7 +2672,7 @@
26712672
"message.failed.to.add": "Failed to add",
26722673
"message.failed.to.assign.vms": "Failed to assign VMs",
26732674
"message.failed.to.remove": "Failed to remove",
2674-
"message.generate.keys": "Please confirm that you would like to generate new keys for this user.",
2675+
"message.generate.keys": "Please confirm that you would like to generate new API/Secret keys for this user.",
26752676
"message.chart.statistic.info": "The shown charts are self-adjustable, that means, if the value gets close to the limit or overpass it, it will grow to adjust the shown value",
26762677
"message.guest.traffic.in.advanced.zone": "Guest network traffic is communication between end-user virtual machines. Specify a range of VLAN IDs or VXLAN network identifiers (VNIs) to carry guest traffic for each physical network.",
26772678
"message.guest.traffic.in.basic.zone": "Guest network traffic is communication between end-user virtual machines. Specify a range of IP addresses that CloudStack can assign to guest VMs. Make sure this range does not overlap the reserved system IP range.",

ui/src/components/view/ActionButton.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@
4747
:key="actionIndex"
4848
arrowPointAtCenter
4949
placement="bottomRight">
50-
<template #title>
50+
<template v-if="action.hoverLabel" #title>
51+
{{ $t(action.hoverLabel) }}
52+
</template>
53+
<template v-else #title>
5154
{{ $t(action.label) }}
5255
</template>
5356
<a-badge

ui/src/config/section/user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export default {
6868
api: 'registerUserKeys',
6969
icon: 'file-protect-outlined',
7070
label: 'label.action.generate.keys',
71+
hoverLabel: 'label.action.generate.api.secret.keys',
7172
message: 'message.generate.keys',
7273
dataView: true
7374
},

0 commit comments

Comments
 (0)