|
@@ -2,11 +2,7 @@
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
|
<main>
|
|
<main>
|
|
|
- <v-skeleton-loader
|
|
|
|
|
- v-if="fetchState.pending"
|
|
|
|
|
- type="text"
|
|
|
|
|
- />
|
|
|
|
|
- <FormOrganizationContactPoint :id="id" v-else></FormOrganizationContactPoint>
|
|
|
|
|
|
|
+ <FormOrganizationContactPoint :id="id" v-if="!fetchState.pending"></FormOrganizationContactPoint>
|
|
|
</main>
|
|
</main>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -14,14 +10,15 @@
|
|
|
import {defineComponent, useContext} from '@nuxtjs/composition-api'
|
|
import {defineComponent, useContext} from '@nuxtjs/composition-api'
|
|
|
import { ContactPoint } from '~/models/Core/ContactPoint'
|
|
import { ContactPoint } from '~/models/Core/ContactPoint'
|
|
|
import {useDataUtils} from "~/composables/data/useDataUtils";
|
|
import {useDataUtils} from "~/composables/data/useDataUtils";
|
|
|
|
|
+import {BankAccount} from "~/models/Core/BankAccount";
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'EditContactPoint',
|
|
name: 'EditContactPoint',
|
|
|
setup () {
|
|
setup () {
|
|
|
const {$dataProvider, route} = useContext()
|
|
const {$dataProvider, route} = useContext()
|
|
|
const {getItemToEdit} = useDataUtils($dataProvider)
|
|
const {getItemToEdit} = useDataUtils($dataProvider)
|
|
|
- const {id, fetchState} = getItemToEdit(route, ContactPoint)
|
|
|
|
|
-
|
|
|
|
|
|
|
+ const id = route.value.params.id
|
|
|
|
|
+ const {fetchState} = getItemToEdit(id, ContactPoint)
|
|
|
return {
|
|
return {
|
|
|
id,
|
|
id,
|
|
|
fetchState
|
|
fetchState
|