diff --git a/resources/assets/js/components/ComposeModal.vue b/resources/assets/js/components/ComposeModal.vue index c9e07a575..9de4a486a 100644 --- a/resources/assets/js/components/ComposeModal.vue +++ b/resources/assets/js/components/ComposeModal.vue @@ -49,7 +49,7 @@

Add Photo

-

Click here to add photos

+

{{composeMessage()}}

@@ -527,6 +527,16 @@ export default { closeModal() { this.composeType = ''; $('#composeModal').modal('hide'); + }, + + composeMessage() { + let config = this.config; + let composeType = this.composeType; + let video = config.uploader.media_types.includes('video/mp4'); + + return video ? + 'Click here to add photos or videos' : + 'Click here to add photos'; } } }