diff --git a/vue/components/notifications-editor.vue b/vue/components/notifications-editor.vue index fd79ca88..63f4dcc9 100644 --- a/vue/components/notifications-editor.vue +++ b/vue/components/notifications-editor.vue @@ -2,7 +2,7 @@ import { APIConsumer, ComponentDisplay, - ConsumerLogicApi, FormConsumerApiOneShot, gettext, + ConsumerLogicApi, FormConsumerOneShotApi, gettext, useActionHandler, } from '@velis/dynamicforms'; import { onMounted, onUnmounted, ref } from 'vue'; @@ -49,12 +49,12 @@ const notificationLogic = ref(new ConsumerLogicApi( notificationLogic.value.getFullDefinition(); const actionViewLicense = async (): Promise => { - await FormConsumerApiOneShot({ url: licenseConsumerUrl, trailingSlash: licenseConsumerUrlTrailingSlash, pk: 'new' }); + await FormConsumerOneShotApi({ url: licenseConsumerUrl, trailingSlash: licenseConsumerUrlTrailingSlash, pk: 'new' }); return true; }; const actionAddNotification = async (): Promise => { - await FormConsumerApiOneShot({ + await FormConsumerOneShotApi({ url: consumerUrl, trailingSlash: consumerTrailingSlash, pk: 'new', diff --git a/vue/components/user-session/login.ts b/vue/components/user-session/login.ts index 224691e0..209d7eff 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, FormConsumerApiOneShot, + FilteredActions, FormConsumerOneShotApi, FormPayload, gettext, } from '@velis/dynamicforms'; @@ -221,7 +221,7 @@ function useLogin() { socialAuth.value = formDef.payload.social_auth_providers; } - const openRegistration = async () => FormConsumerApiOneShot( + const openRegistration = async () => FormConsumerOneShotApi( { 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 f3cddc19..66f32031 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, - FormConsumerApiOneShot, + FormConsumerOneShotApi, FormPayload, } from '@velis/dynamicforms'; import slugify from 'slugify'; @@ -59,7 +59,7 @@ async function addNewProject() { } return false; }; - const addProjectModal = await FormConsumerApiOneShot( + const addProjectModal = await FormConsumerOneShotApi( { url: '/project', trailingSlash: false, diff --git a/vue/components/user-session/user-profile.vue b/vue/components/user-session/user-profile.vue index 74ae5363..1324a48d 100644 --- a/vue/components/user-session/user-profile.vue +++ b/vue/components/user-session/user-profile.vue @@ -1,5 +1,5 @@