diff options
author | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2020-02-29 00:21:27 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2020-03-03 02:40:05 +0300 |
commit | eaa04800a42b8cd8496ff613dd0d17055e6e477e (patch) | |
tree | f33cafdb41d38c48da4f89f3b2777633e867b994 /src/components/Global/TableToolbar.vue | |
parent | 8cc4866dbc86682a157a6f6b57526a31ac3fc524 (diff) | |
download | webui-vue-eaa04800a42b8cd8496ff613dd0d17055e6e477e.tar.xz |
Add translation to user management page
Updated TableToolbar component to handle label translation
outside of the component which is more consistent with bootstrap
table component patterns.
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: Ic2e75e327f6a6067905c541f9a3ea55c5d103f4b
Diffstat (limited to 'src/components/Global/TableToolbar.vue')
-rw-r--r-- | src/components/Global/TableToolbar.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Global/TableToolbar.vue b/src/components/Global/TableToolbar.vue index e28151cb..041a9c18 100644 --- a/src/components/Global/TableToolbar.vue +++ b/src/components/Global/TableToolbar.vue @@ -13,7 +13,7 @@ class="d-block" @click="$emit('batchAction', action.value)" > - {{ $t(action.labelKey) }} + {{ action.label }} </b-button> <b-button variant="primary" @@ -42,7 +42,7 @@ export default { validator: prop => { return prop.every(action => { return ( - action.hasOwnProperty('value') && action.hasOwnProperty('labelKey') + action.hasOwnProperty('value') && action.hasOwnProperty('label') ); }); } |