1
0
Fork 0

Update ComposeModal.vue

This commit is contained in:
Daniel Supernault 2019-06-03 21:04:39 -06:00
parent 2d8bd3d0dc
commit 7de2d199d7
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 11 additions and 1 deletions

View File

@ -49,7 +49,7 @@
<p class="text-center mb-0 font-weight-bold text-white"><i class="fas fa-plus mr-1"></i> Add Photo</p>
</div>
<div v-if="ids.length == 0" class="w-100 h-100 bg-light py-5 cursor-pointer" style="border-bottom: 1px solid #f1f1f1" v-on:click="addMedia($event)">
<p class="text-center mb-0 font-weight-bold p-5">Click here to add photos</p>
<p class="text-center mb-0 font-weight-bold p-5">{{composeMessage()}}</p>
</div>
<div v-if="ids.length > 0">
@ -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';
}
}
}