Modifications to picklist as it was not working with a delayed set when I tested with actual Widget form. Definitely better though with these changes.

This commit is contained in:
2020-03-26 22:21:35 +00:00
parent 4a855b8cc9
commit 17d787b2a8
4 changed files with 77 additions and 20 deletions

View File

@@ -4,7 +4,7 @@
v-model="selectedWidget"
:ayaType="ayaType().Widget"
:label="lt('Widget')"
:allowEdit="true"
:showEditIcon="true"
>
</gz-pick-list>
<v-divider></v-divider>

View File

@@ -134,6 +134,27 @@
@change="onChange('active')"
></v-checkbox>
</v-col>
<v-col
v-if="form().showMe(this, 'UserId')"
cols="12"
sm="6"
lg="4"
xl="3"
>
<gz-pick-list
:ayaType="ayaType().User"
:showEditIcon="true"
v-model="obj.userId"
:readonly="formState.readOnly"
:label="lt('User')"
ref="userid"
:error-messages="form().serverErrors(this, 'userid')"
@change="onChange('userid')"
></gz-pick-list>
{{ obj.userId }}
</v-col>
<v-col
v-if="form().showMe(this, 'UserType')"
cols="12"
@@ -289,7 +310,7 @@ export default {
count: null,
customFields: "{}",
tags: [],
userId: 0
userId: null
},
formState: {
ready: false,
@@ -353,6 +374,9 @@ export default {
translation() {
return window.$gz.translation;
},
ayaType: function() {
return window.$gz.type;
},
form() {
return window.$gz.form;
},