diff --git a/vue/components/notifications-editor.vue b/vue/components/notifications-editor.vue index 45a0fba2..5285ea1c 100644 --- a/vue/components/notifications-editor.vue +++ b/vue/components/notifications-editor.vue @@ -3,7 +3,7 @@ import { APIConsumer, ComponentDisplay, ConsumerLogicApi, - FormConsumerOneShotApi, gettext, + FormConsumerApiOneShot, gettext, useActionHandler, } from '@velis/dynamicforms'; import { onMounted, onUnmounted, ref } from 'vue'; @@ -50,12 +50,12 @@ const notificationLogic = ref(new ConsumerLogicApi( notificationLogic.value.getFullDefinition(); const actionViewLicense = async (): Promise => { - await FormConsumerOneShotApi({ url: licenseConsumerUrl, trailingSlash: licenseConsumerUrlTrailingSlash, pk: 'new' }); + await FormConsumerApiOneShotv({ url: licenseConsumerUrl, trailingSlash: licenseConsumerUrlTrailingSlash, pk: 'new' }); return true; }; const actionAddNotification = async (): Promise => { - await FormConsumerOneShotApi({ + await FormConsumerApiOneShot({ url: consumerUrl, trailingSlash: consumerTrailingSlash, pk: 'new', diff --git a/vue/components/user-session/login.ts b/vue/components/user-session/login.ts index a98da564..5bb13117 100644 --- a/vue/components/user-session/login.ts +++ b/vue/components/user-session/login.ts @@ -3,7 +3,7 @@ import { ConsumerLogicApi, dfModal as dfModalApi, dfModal, DialogSize, DisplayMode, - FilteredActions, FormConsumerOneShotApi, + FilteredActions, FormConsumerApiOneShot, FormPayload, gettext, } from '@velis/dynamicforms'; @@ -221,7 +221,7 @@ export default function useLogin() { socialAuth.value = formDef.payload.social_auth_providers; } - const openRegistration = async () => FormConsumerOneShotApi( + const openRegistration = async () => FormConsumerApiOneShot( { url: '/account/profile/register', trailingSlash: false }, ); diff --git a/vue/components/user-session/project-list.vue b/vue/components/user-session/project-list.vue index 7596fc02..f3cddc19 100644 --- a/vue/components/user-session/project-list.vue +++ b/vue/components/user-session/project-list.vue @@ -3,7 +3,7 @@ import { Action, apiClient, dfModal, - FormConsumerOneShotApi, + FormConsumerApiOneShot, FormPayload, } from '@velis/dynamicforms'; import slugify from 'slugify'; @@ -46,7 +46,6 @@ async function loadData() { } async function addNewProject() { - // const addProjectModal = await FormConsumerOneShotApi({ url: '/project', trailingSlash: false, pk: 'new' }); let slugChanged = false; let ignoreSlugChange = false; const valueChangedHandler = (action: Action, payload: FormPayload, context: any) => { @@ -60,7 +59,7 @@ async function addNewProject() { } return false; }; - const addProjectModal = await FormConsumerOneShotApi( + const addProjectModal = await FormConsumerApiOneShot( { url: '/project', trailingSlash: false, diff --git a/vue/components/user-session/user-profile.vue b/vue/components/user-session/user-profile.vue index a5012236..e64b8f50 100644 --- a/vue/components/user-session/user-profile.vue +++ b/vue/components/user-session/user-profile.vue @@ -1,5 +1,5 @@