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
diff --git a/src/components/Global/TableToolbar.vue b/src/components/Global/TableToolbar.vue
index e28151c..041a9c1 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 @@
validator: prop => {
return prop.every(action => {
return (
- action.hasOwnProperty('value') && action.hasOwnProperty('labelKey')
+ action.hasOwnProperty('value') && action.hasOwnProperty('label')
);
});
}