This commit is contained in:
2020-07-11 15:03:47 +00:00
parent 6ce9db9ea2
commit 7cded0ee33
3 changed files with 23 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
/* xeslint-disable */
let keepPolling = false;
const DEFAULT_POLLING_INTERVAL = 10000;
const DEFAULT_POLLING_INTERVAL = 60000;
const MAX_POLLING_INTERVAL = 15 * 60 * 1000; //15 minutes maximum wait time
export default {

View File

@@ -378,6 +378,7 @@ async function populateAyaTypeList(vm) {
let item = ayt[i];
let openableObject = false;
//CoreBizObject add here
//todo: centralize this if reuqired one more time anywhere
switch (item.id) {
case window.$gz.type.User:
case window.$gz.type.Widget:

View File

@@ -5,9 +5,22 @@
<v-form ref="form">
<v-row>
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
{{ obj }}
//////
{{ selectLists }}
<v-col cols="12" sm="6" lg="4" xl="3">
<v-select
v-model="obj.ayaType"
:items="selectLists.coreAyaTypes"
item-text="name"
item-value="id"
:readonly="formState.readOnly"
:disabled="formState.readOnly"
:label="$ay.t('AyaType')"
ref="ayaType"
:data-cy="!!$ay.dev ? 'ayaType' : false"
:rules="[form().integerValid(this, 'ayaType')]"
:error-messages="form().serverErrors(this, 'ayaType')"
@input="fieldValueChanged('ayaType')"
></v-select>
</v-col>
</v-row>
</v-form>
</v-col>
@@ -87,7 +100,8 @@ export default {
return {
selectLists: {
eventTypes: [],
deliveryMethods: []
deliveryMethods: [],
coreAyaTypes: []
},
/* public long Id { get; set; }
public uint Concurrency { get; set; }
@@ -537,5 +551,8 @@ async function populateSelectionLists(vm) {
vm.selectLists.deliveryMethods = window.$gz.enums.getSelectionList(
"NotifyDeliveryMethod"
);
await window.$gz.enums.fetchEnumList("core");
vm.selectLists.coreAyaTypes = window.$gz.enums.getSelectionList("core");
}
</script>