mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 20:01:17 +00:00
[editor] Remove character limit for AutoMessage template
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
63685ff5f2
commit
791dfe63b1
1 changed files with 2 additions and 6 deletions
|
@ -123,7 +123,7 @@
|
||||||
<template-editor
|
<template-editor
|
||||||
id="formAutoMessageMessage"
|
id="formAutoMessageMessage"
|
||||||
v-model="models.autoMessage.message"
|
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)"
|
@valid-template="valid => updateTemplateValid('autoMessage.message', valid)"
|
||||||
/>
|
/>
|
||||||
<div slot="description">
|
<div slot="description">
|
||||||
|
@ -133,7 +133,7 @@
|
||||||
:icon="['fas', 'code']"
|
:icon="['fas', 'code']"
|
||||||
title="Supports Templating"
|
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>
|
</div>
|
||||||
</b-form-group>
|
</b-form-group>
|
||||||
|
|
||||||
|
@ -278,10 +278,6 @@ export default {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.validateAutoMessageMessageLength < this.models.autoMessage.message?.length) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!this.validateAutoMessageChannel) {
|
if (!this.validateAutoMessageChannel) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue