|
|
@@ -458,7 +458,7 @@ import UseValidator from '~/composables/form/useValidator'
|
|
|
import { UseNavigationHelpers } from '~/composables/form/useNavigationHelpers'
|
|
|
import I18N from '~/services/utils/i18n'
|
|
|
import {Country} from "~/models/Core/Country";
|
|
|
-import {UseTypeOfPractice} from "~/composables/data/useTypeOfPractice";
|
|
|
+import {useTypeOfPracticeProvider} from "~/composables/data/useTypeOfPracticeProvider";
|
|
|
import ModelsUtils from "~/services/utils/modelsUtils";
|
|
|
import {NetworkOrganization} from "~/models/Network/NetworkOrganization";
|
|
|
import {OrganizationArticle} from "~/models/Organization/OrganizationArticle";
|
|
|
@@ -467,13 +467,13 @@ export default defineComponent({
|
|
|
name: 'OrganizationParent',
|
|
|
setup () {
|
|
|
const { store, app: { i18n }, $dataProvider } = useContext()
|
|
|
+ const {typeOfPractices, fetchState:typeOfPracticesFetchingState} = useTypeOfPracticeProvider($dataProvider)
|
|
|
+
|
|
|
const organizationProfile = reactive($organizationProfile(store))
|
|
|
const id: number = store.state.profile.organization.id
|
|
|
|
|
|
const { siretError, siretErrorMessage, checkSiret } = UseValidator.useHandleSiret(i18n, $dataProvider)
|
|
|
|
|
|
- const {typeOfPractices, fetchState:typeOfPracticesFetchingState} = new UseTypeOfPractice().getAll()
|
|
|
-
|
|
|
const checkSiretHook = async (siret: string, field: string, updateRepository: any) => {
|
|
|
await checkSiret(siret)
|
|
|
if (!siretError.value) { updateRepository(siret, field) }
|