Skip to content

Commit

Permalink
send invitation
Browse files Browse the repository at this point in the history
  • Loading branch information
ipula committed Jun 12, 2024
1 parent 4ca60ed commit 570ded6
Show file tree
Hide file tree
Showing 25 changed files with 532 additions and 2,261 deletions.
2 changes: 0 additions & 2 deletions src/components/Container/PageOJS.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
import Page from '@/components/Container/Page.vue';
import SubmissionsPage from '@/pages/submissions/SubmissionsPage.vue';
import UserInvitationPage from '@/pages/userInvitation/UserInvitationPage.vue';
import AcceptInvitationPage from '@/pages/acceptInvitation/AcceptInvitationPage.vue';
export default {
components: {
SubmissionsPage,
UserInvitationPage,
AcceptInvitationPage,
},
extends: Page,
};
Expand Down
15 changes: 15 additions & 0 deletions src/composables/useForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@ export function useForm(_form) {
);
}

function connectWithErrors(errors) {
watch(
errors,
(newErrors) => {
Object.keys(newErrors).forEach((key) => {
if (doesFieldExist(form.value, key)) {
form.value.errors[key] = newErrors[key];
}
});
},
{immediate: true},
);
}

function set(key, data) {
Object.keys(data).forEach(function (dataKey) {
form.value[dataKey] = data[dataKey];
Expand Down Expand Up @@ -109,5 +123,6 @@ export function useForm(_form) {
clearForm,
form,
connectWithPayload,
connectWithErrors,
};
}
24 changes: 0 additions & 24 deletions src/pages/acceptInvitation/AcceptInvitationCreateUserAccount.vue

This file was deleted.

20 changes: 0 additions & 20 deletions src/pages/acceptInvitation/AcceptInvitationCreateUserForms.vue

This file was deleted.

17 changes: 0 additions & 17 deletions src/pages/acceptInvitation/AcceptInvitationHeader.vue

This file was deleted.

9 changes: 0 additions & 9 deletions src/pages/acceptInvitation/AcceptInvitationPage.mdx

This file was deleted.

28 changes: 0 additions & 28 deletions src/pages/acceptInvitation/AcceptInvitationPage.stories.js

This file was deleted.

Loading

0 comments on commit 570ded6

Please sign in to comment.