Rename concurrencyToken to concurrency
This commit is contained in:
@@ -104,7 +104,7 @@ export default {
|
||||
return {
|
||||
enableCypress: true,
|
||||
obj: [],
|
||||
concurrencyToken: undefined,
|
||||
concurrency: undefined,
|
||||
formCustomTemplateKey: this.$route.params.formCustomTemplateKey,
|
||||
selectLists: {
|
||||
uiFieldDataTypes: []
|
||||
@@ -182,7 +182,7 @@ export default {
|
||||
//Note that server expects to see a string array of json template, not actual json
|
||||
let newObj = {
|
||||
formKey: vm.formCustomTemplateKey,
|
||||
concurrencyToken: vm.concurrencyToken,
|
||||
concurrency: vm.concurrency,
|
||||
template: "[]"
|
||||
};
|
||||
//temporary array to hold template for later stringification
|
||||
@@ -233,11 +233,11 @@ export default {
|
||||
//(update our local cached copy of the form customizations)
|
||||
window.$gz.formCustomTemplate.set(
|
||||
vm.formCustomTemplateKey,
|
||||
res.data.concurrencyToken,
|
||||
res.data.concurrency,
|
||||
newObj.template
|
||||
);
|
||||
//set our local concurrency token value
|
||||
vm.concurrencyToken = res.data.concurrencyToken;
|
||||
vm.concurrency = res.data.concurrency;
|
||||
|
||||
//form is now clean
|
||||
window.$gz.form.setFormState({
|
||||
@@ -435,7 +435,7 @@ function initDataObject(vm) {
|
||||
};
|
||||
|
||||
vm.obj.push(objItem);
|
||||
vm.concurrencyToken = window.$gz.formCustomTemplate.getTemplateConcurrencyToken(
|
||||
vm.concurrency = window.$gz.formCustomTemplate.getTemplateConcurrencyToken(
|
||||
vm.formCustomTemplateKey
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user