aboutsummaryrefslogtreecommitdiff
path: root/src/components/image_cropper/image_cropper.js
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-02-08 11:42:02 -0500
committertaehoon <th.dev91@gmail.com>2019-02-15 13:34:33 -0500
commit228e6681e3fd4a16d08d96edb9eea21d64be5600 (patch)
tree13ed059b1c41402dc8dd288329f687b89d53ee3f /src/components/image_cropper/image_cropper.js
parent205e38ffa99df67d77290a50b0d318dcc4729b3e (diff)
Localization of ImageCropper component
Diffstat (limited to 'src/components/image_cropper/image_cropper.js')
-rw-r--r--src/components/image_cropper/image_cropper.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/components/image_cropper/image_cropper.js b/src/components/image_cropper/image_cropper.js
index e4bf5ea2..86bd2d67 100644
--- a/src/components/image_cropper/image_cropper.js
+++ b/src/components/image_cropper/image_cropper.js
@@ -26,12 +26,10 @@ const ImageCropper = {
default: 'image/png, image/gif, image/jpeg, image/bmp, image/x-icon'
},
title: {
- type: String,
- default: 'Crop picture'
+ type: String
},
saveButtonLabel: {
- type: String,
- default: 'Save'
+ type: String
}
},
data () {
@@ -44,6 +42,14 @@ const ImageCropper = {
components: {
Modal
},
+ computed: {
+ modalTitle () {
+ return this.title || this.$t('image_cropper.crop_picture')
+ },
+ modalSaveButtonLabel () {
+ return this.saveButtonLabel || this.$t('image_cropper.save')
+ }
+ },
methods: {
destroy () {
this.cropper.destroy()