This commit is contained in:
2020-06-24 14:19:39 +00:00
parent b1c8a05463
commit cd60927fd3

View File

@@ -1,7 +1,7 @@
<template>
<v-container fluid>
<gz-report-selector ref="reportSelector"></gz-report-selector>
<!-- {{ formState }} -->
{{ formState }}
<v-row v-if="formState.ready">
<v-col>
<v-form ref="form">
@@ -45,12 +45,16 @@
pageText: $ay.t('PageOfPageText')
}"
>
<template v-slot:item.display="props">
<template
v-slot:item.display="props"
v-if="!formState.readOnly"
>
<v-edit-dialog
large
:return-value.sync="props.item.display"
:cancel-text="$ay.t('Cancel')"
:save-text="$ay.t('Save')"
@save="saveItem()"
>
{{ props.item.display }}
<template v-slot:input>
@@ -205,6 +209,13 @@ export default {
}
},
methods: {
saveItem() {
//just called to flag as dirty
window.$gz.form.setFormState({
vm: this,
dirty: true
});
},
filteredItems() {
return this.obj.translationItems;
},