From e30799ac80073a4dc5ce2c0ddffc833c7f657f55 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 19 Jun 2019 02:54:21 -0600 Subject: [PATCH] Update Compose Modal --- resources/assets/js/components/ComposeModal.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/assets/js/components/ComposeModal.vue b/resources/assets/js/components/ComposeModal.vue index 4faac09ed..e886afd00 100644 --- a/resources/assets/js/components/ComposeModal.vue +++ b/resources/assets/js/components/ComposeModal.vue @@ -476,6 +476,11 @@ export default { return; } + if(this.composeText.length > this.config.uploader.max_caption_length) { + swal('Error', 'Caption is too long', 'error'); + return; + } + switch(state) { case 'publish' : if(this.media.length == 0) {