|
@@ -40,13 +40,12 @@ import {
|
|
|
defineComponent, onUnmounted, ref, useContext, watch, computed, ComputedRef, Ref, WatchStopHandle
|
|
defineComponent, onUnmounted, ref, useContext, watch, computed, ComputedRef, Ref, WatchStopHandle
|
|
|
} from '@nuxtjs/composition-api'
|
|
} from '@nuxtjs/composition-api'
|
|
|
import { $useMyProfileUpdater } from '~/use/updater/useMyProfileUpdater'
|
|
import { $useMyProfileUpdater } from '~/use/updater/useMyProfileUpdater'
|
|
|
-import { $useDirtyForm } from '~/use/form/useDirtyForm'
|
|
|
|
|
|
|
+import { $useForm } from '~/use/form/useForm'
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
setup (_, { emit }) {
|
|
setup (_, { emit }) {
|
|
|
- const { store, $dataPersister } = useContext()
|
|
|
|
|
- const { markFormAsNotDirty } = $useDirtyForm(store)
|
|
|
|
|
- const { updateMyProfile, setHistoricalRange, historical } = $useMyProfileUpdater(store, $dataPersister)
|
|
|
|
|
|
|
+ const { markFormAsNotDirty } = $useForm()
|
|
|
|
|
+ const { updateMyProfile, setHistoricalRange, historical } = $useMyProfileUpdater()
|
|
|
|
|
|
|
|
const datesRange:ComputedRef<Array<string>> = computed(() => {
|
|
const datesRange:ComputedRef<Array<string>> = computed(() => {
|
|
|
return [historical.value.dateStart, historical.value.dateEnd]
|
|
return [historical.value.dateStart, historical.value.dateEnd]
|