mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-02-13 09:42:53 +08:00
Fixed raw templates being ignored when there is only one arg.
When there was just one arg and a raw template, the template got swaped out with CONFIG.defaultAltTemplateId
This commit is contained in:
parent
602753f59e
commit
466149d1ec
@ -7,6 +7,11 @@ Vue.component('message', {
|
||||
textEscaped() {
|
||||
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
|
||||
if (this.templateId == CONFIG.defaultTemplateId
|
||||
&& this.args.length == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user