aboutsummaryrefslogtreecommitdiff
path: root/src/components/image_cropper/image_cropper.js
diff options
context:
space:
mode:
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()