Make create form work
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
William Buezas 2024-06-05 14:52:45 -03:00
parent f453f42b06
commit 9ed297207b
1 changed files with 2 additions and 6 deletions

View File

@ -7,19 +7,13 @@ import FetchData from 'components/FetchData.vue';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'components/ui/VnRow.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import FormModel from 'components/FormModel.vue';
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
import VnSearchbar from 'components/ui/VnSearchbar.vue';
import FormModelPopup from 'components/FormModelPopup.vue'; import FormModelPopup from 'components/FormModelPopup.vue';
import { useValidator } from 'src/composables/useValidator'; import { useValidator } from 'src/composables/useValidator';
import { useArrayData } from 'src/composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
import { useStateStore } from 'stores/useStateStore';
const { t } = useI18n(); const { t } = useI18n();
const route = useRoute();
const router = useRouter(); const router = useRouter();
const stateStore = useStateStore();
const arrayData = useArrayData('aclCreate'); const arrayData = useArrayData('aclCreate');
const { store } = arrayData; const { store } = arrayData;
const validationsStore = useValidator(); const validationsStore = useValidator();
@ -81,10 +75,12 @@ onMounted(() => {
auto-load auto-load
/> />
<FormModelPopup <FormModelPopup
v-if="urlCreate || urlUpdate"
:title="t(`${action} ACL`)" :title="t(`${action} ACL`)"
:url="url" :url="url"
:url-update="urlUpdate" :url-update="urlUpdate"
:url-create="urlCreate" :url-create="urlCreate"
:form-initial-data="defaultFormData"
auto-load auto-load
model="aclCreate" model="aclCreate"
@on-data-saved="onDataSaved()" @on-data-saved="onDataSaved()"