This commit is contained in:
2021-09-22 17:40:30 +00:00
parent 8b456ea609
commit 33d2359c21

View File

@@ -490,7 +490,7 @@ export default {
timeZoneName: window.$gz.locale.getResolvedTimeZoneName(),
languageName: window.$gz.locale.getResolvedLanguage(),
hour12: window.$gz.locale.getHour12(),
formSetting:{firstTime:"8:00"}
formSetting: { firstTime: "8:00" }
};
},
methods: {
@@ -1063,6 +1063,7 @@ function generateMenu(vm) {
async function initForm(vm) {
await fetchTranslatedText(vm);
getFormSettings(vm);
getFormUserOptions(vm);
}
function getFormSettings(vm) {
@@ -1085,6 +1086,23 @@ function saveFormSettings(vm) {
window.$gz.form.setFormSettings(FORM_KEY, formSettings);
}
////////////////////
//
async function getFormUserOptions(vm) {
let res = await window.$gz.api.get(
`form-user-options/list?formKey=${FORM_KEY}`
);
console.log("getuseroptions:", res);
// if (res.error) {
// console.log("getuseroptions:",res)
// } else {
// vm.selectLists.savedFilters = res.data;
// //confirm we still have the current active filter id
// setActiveFilter(vm, vm.activeFilterId);
// }
}
//////////////////////////////////////////////////////////
//
// Ensures UI translated text is available