This commit is contained in:
@@ -710,7 +710,16 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
insertToken(t) {
|
||||
console.log("INSERT TOKEN: ", t);
|
||||
const bodyTextArea = this.$refs.template.$el.querySelector("textarea");
|
||||
const start = bodyTextArea.selectionStart;
|
||||
this.obj.template = window.$gz.util.stringSplice(
|
||||
this.obj.template,
|
||||
start,
|
||||
0,
|
||||
t
|
||||
);
|
||||
|
||||
// console.log("INSERT TOKEN: ", t);
|
||||
},
|
||||
objectTagsTitle() {
|
||||
let objectName = null;
|
||||
@@ -1073,7 +1082,8 @@ async function fetchTranslatedText() {
|
||||
"WorkOrderCustomerReferenceNumber",
|
||||
"WorkOrderSummary",
|
||||
"WorkOrderSerialNumber",
|
||||
"Name"
|
||||
"Name",
|
||||
"TemplateTokens"
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user