[editor] Remove character limit for AutoMessage template

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-05-11 15:49:29 +02:00
parent 63685ff5f2
commit 791dfe63b1
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -123,7 +123,7 @@
<template-editor
id="formAutoMessageMessage"
v-model="models.autoMessage.message"
:state="models.autoMessage.message ? models.autoMessage.message.length <= validateAutoMessageMessageLength : false"
:state="models.autoMessage.message"
@valid-template="valid => updateTemplateValid('autoMessage.message', valid)"
/>
<div slot="description">
@ -133,7 +133,7 @@
:icon="['fas', 'code']"
title="Supports Templating"
/>
{{ models.autoMessage.message && models.autoMessage.message.length || 0 }} / {{ validateAutoMessageMessageLength }}
Ensure the template result has a length of less than {{ validateAutoMessageMessageLength }} characters (Twitch message size limit)
</div>
</b-form-group>
@ -278,10 +278,6 @@ export default {
return false
}
if (this.validateAutoMessageMessageLength < this.models.autoMessage.message?.length) {
return false
}
if (!this.validateAutoMessageChannel) {
return false
}