From 7de2d199d75bf1a8b595a15a48cfb43315f15061 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 3 Jun 2019 21:04:39 -0600 Subject: [PATCH] Update ComposeModal.vue --- resources/assets/js/components/ComposeModal.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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'; } } }