0
0
Fork 0

Merge pull request '7355-fixesAccountMigration' (!643) from 7355-fixesAccountMigration into dev

Reviewed-on: verdnatura/salix-front#643
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
This commit is contained in:
Carlos Satorres 2024-08-27 08:46:10 +00:00
commit 0257e12e6b
1 changed files with 6 additions and 9 deletions

View File

@ -1,5 +1,5 @@
<script setup>
import { ref } from 'vue';
import { ref, watch } from 'vue';
import { useI18n } from 'vue-i18n';
import { useRoute } from 'vue-router';
@ -12,17 +12,14 @@ const route = useRoute();
const rolesOptions = ref([]);
const formModelRef = ref();
watch(
() => route.params.id,
() => formModelRef.value.reset()
);
</script>
<template>
<FetchData url="VnRoles" auto-load @on-fetch="(data) => (rolesOptions = data)" />
<FormModel
ref="formModelRef"
model="AccountPrivileges"
:url="`VnUsers/${route.params.id}/privileges`"
:url-create="`VnUsers/${route.params.id}/privileges`"
auto-load
@on-data-saved="formModelRef.fetch()"
>
<FormModel ref="formModelRef" model="AccountPrivileges" url="VnUsers" auto-load>
<template #form="{ data }">
<div class="q-gutter-y-sm">
<QCheckbox