Skip to content

Commit

Permalink
Change Char Limit 2500
Browse files Browse the repository at this point in the history
  • Loading branch information
keshansandeepa authored and azhamn committed Apr 15, 2020
1 parent 6d0bc8a commit 03cf206
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/js/Case.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ var app = new Vue({

message_en:{
required,
maxLength: maxLength(1500)
maxLength: maxLength(2500)
},

message_si:{
maxLength: maxLength(1500)
maxLength: maxLength(2500)
},

message_ta:{
maxLength: maxLength(1500)
maxLength: maxLength(2500)
},

},
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/js/alerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,15 @@ var app = new Vue({

english:{
required,
maxLength: maxLength(1500)
maxLength: maxLength(2500)
},

sinhala:{
maxLength: maxLength(1500)
maxLength: maxLength(2500)
},

tamil:{
maxLength: maxLength(1500)
maxLength: maxLength(2500)
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/js/Case.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main/resources/static/js/alerts.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/main/resources/templates/casePortal.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ <h2 class= "bg-white mt-2 px-8 text-left text-2xl leading-9 font-semibold text-g
type="text" placeholder="Message in English" id="message_en" v-model="$v.cases.message_en.$model" :class="{'border-red-500':$v.cases.message_en.$error}" required></textarea>
<div v-if="$v.cases.message_en.$dirty">
<p class="text-red-500 text-xs italic" v-if="!$v.cases.message_en.required">English Message is required</p>
<p class="text-red-500 text-xs italic" v-if="!$v.cases.message_en.maxLength">English Message must have at most 1500 characters</p>
<p class="text-red-500 text-xs italic" v-if="!$v.cases.message_en.maxLength">English Message must have at most 2500 characters</p>

</div>
</div>
Expand All @@ -182,7 +182,7 @@ <h2 class= "bg-white mt-2 px-8 text-left text-2xl leading-9 font-semibold text-g
v-model="$v.cases.message_si.$model" type="text" name="message_si" placeholder="Message in English" id="message_si" :class="{'border-red-500':$v.cases.message_si.$error}" ></textarea>

<div v-if="$v.cases.message_si.$dirty">
<p class="text-red-500 text-xs italic" v-if="!$v.cases.message_si.maxLength">Sinhala Message must have at most 1500 characters</p>
<p class="text-red-500 text-xs italic" v-if="!$v.cases.message_si.maxLength">Sinhala Message must have at most 2500 characters</p>

</div>
</div>
Expand All @@ -197,7 +197,7 @@ <h2 class= "bg-white mt-2 px-8 text-left text-2xl leading-9 font-semibold text-g
v-model="$v.cases.message_ta.$model" type="text" name="message_ta" placeholder="Message in Tamil" id="message_ta" :class="{'border-red-500':$v.cases.message_ta.$error}" ></textarea>

<div v-if="$v.cases.message_ta.$dirty">
<p class="text-red-500 text-xs italic" v-if="!$v.cases.message_ta.maxLength">Tamil Message must have at most 1500 characters</p>
<p class="text-red-500 text-xs italic" v-if="!$v.cases.message_ta.maxLength">Tamil Message must have at most 2500 characters</p>
</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/templates/newsPortal.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ <h2 class= "bg-white mt-2 px-8 text-left text-2xl leading-9 font-extrabold text-
</div>
<div v-if="$v.message.english.$dirty">
<p class="text-red-500 text-xs italic" v-if="!$v.message.english.required">English Alerts is required</p>
<p class="text-red-500 text-xs italic" v-if="!$v.message.english.maxLength">English Alerts must have at most 1500 characters</p>
<p class="text-red-500 text-xs italic" v-if="!$v.message.english.maxLength">English Alerts must have at most 2500 characters</p>
</div>
</div>

Expand Down Expand Up @@ -435,7 +435,7 @@ <h2 class= "bg-white mt-2 px-8 text-left text-2xl leading-9 font-extrabold text-
<p class="text-base text-blue-400 text-right">{{ charcount.sinhalaChar }} characters</p>
</div>
<div v-if="$v.message.sinhala.$dirty">
<p class="text-red-500 text-xs italic" v-if="!$v.message.sinhala.maxLength">Sinhala Alerts must have at most 1500 characters</p>
<p class="text-red-500 text-xs italic" v-if="!$v.message.sinhala.maxLength">Sinhala Alerts must have at most 2500 characters</p>
</div>
</div>

Expand Down Expand Up @@ -604,7 +604,7 @@ <h2 class= "bg-white mt-2 px-8 text-left text-2xl leading-9 font-extrabold text-
<p class="text-base text-blue-400 text-right">{{ charcount.tamilChar }} characters</p>
</div>
<div v-if="$v.message.tamil.$dirty">
<p class="text-red-500 text-xs italic" v-if="!$v.message.tamil.maxLength">Tamil Alerts must have at most 1500 characters</p>
<p class="text-red-500 text-xs italic" v-if="!$v.message.tamil.maxLength">Tamil Alerts must have at most 2500 characters</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 03cf206

Please sign in to comment.