This commit is contained in:
2019-07-12 19:22:16 +00:00
parent 276c7f334f
commit b5d5c25d59
4 changed files with 20 additions and 24 deletions

View File

@@ -617,7 +617,9 @@ var JUST_DELETED = false;
//
//
function initForm(vm) {
return fetchLocaleText(vm).then(populatePickLists(vm));
return fetchLocaleText(vm).then(
populatePickLists(vm).then(fetchFormCustomTemplate(vm))
);
}
//////////////////////
@@ -636,12 +638,7 @@ function populatePickLists(vm) {
//
//
function fetchFormCustomTemplate(vm) {
return vm.$gzformcustomtemplate.get(FORM_CUSTOM_TEMPLATE_KEY).then(res => {
if (res.error) {
throw res.error;
}
vm.pickLists.roles = res.data;
});
return vm.$gzformcustomtemplate.get(FORM_CUSTOM_TEMPLATE_KEY);
}
//////////////////////