mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-02-09 06:33:29 +08:00
Merge pull request #11 from JohnnyCrazy/chat_fix_3
Fixed raw templates being ignored when there is only one arg.
This commit is contained in:
commit
102e3f1a40
@ -7,6 +7,11 @@ Vue.component('message', {
|
|||||||
textEscaped() {
|
textEscaped() {
|
||||||
let s = this.template ? this.template : this.templates[this.templateId];
|
let s = this.template ? this.template : this.templates[this.templateId];
|
||||||
|
|
||||||
|
if (this.template) {
|
||||||
|
//We disable templateId since we are using a direct raw template
|
||||||
|
this.templateId = -1;
|
||||||
|
}
|
||||||
|
|
||||||
//This hack is required to preserve backwards compatability
|
//This hack is required to preserve backwards compatability
|
||||||
if (this.templateId == CONFIG.defaultTemplateId
|
if (this.templateId == CONFIG.defaultTemplateId
|
||||||
&& this.args.length == 1) {
|
&& this.args.length == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user