This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
</v-card-subtitle>
|
||||
<v-card-text>
|
||||
<v-checkbox
|
||||
v-if="item.hideable"
|
||||
v-model="item.visible"
|
||||
:readonly="formState.readOnly"
|
||||
:label="$ay.t('FormFieldVisible')"
|
||||
@@ -42,8 +43,8 @@
|
||||
@input="dataTypeChanged(item)"
|
||||
:data-cy="item.key + 'SelectType'"
|
||||
></v-select>
|
||||
<!-- <v-divider></v-divider>
|
||||
<div>{{ item }}</div> -->
|
||||
<v-divider></v-divider>
|
||||
<div>{{ item }}</div>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
@@ -152,7 +153,11 @@ export default {
|
||||
this.formState.dirty = true;
|
||||
},
|
||||
requiredDisabled: function(item) {
|
||||
if (item.key == "Wiki" || item.key == "Attachments") {
|
||||
if (
|
||||
!item.requireable ||
|
||||
item.key == "Wiki" ||
|
||||
item.key == "Attachments"
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -422,7 +427,9 @@ async function initDataObject(vm) {
|
||||
custom: faf.isCustomField,
|
||||
required: templateItem.required === true,
|
||||
visible: templateItem.hide !== true,
|
||||
type: templateItem.type
|
||||
type: templateItem.type,
|
||||
hideable: templateItem.hideable,
|
||||
requireable: templateItem.requireable
|
||||
};
|
||||
|
||||
//set title including optional section prepended
|
||||
|
||||
Reference in New Issue
Block a user