diff --git a/src/JobsJobsJobs/Api/Handlers.fs b/src/JobsJobsJobs/Api/Handlers.fs index 2aff18f..8dd3f17 100644 --- a/src/JobsJobsJobs/Api/Handlers.fs +++ b/src/JobsJobsJobs/Api/Handlers.fs @@ -258,7 +258,9 @@ module Profile = experience = noneIfBlank form.experience |> Option.map Text skills = form.skills |> List.map (fun s -> - { id = SkillId.ofString s.id + { id = match s.id.StartsWith "new" with + | true -> SkillId.create () + | false -> SkillId.ofString s.id description = s.description notes = noneIfBlank s.notes }) diff --git a/src/JobsJobsJobs/App/src/components/layout/AppToaster.vue b/src/JobsJobsJobs/App/src/components/layout/AppToaster.vue index bc9cec5..5087233 100644 --- a/src/JobsJobsJobs/App/src/components/layout/AppToaster.vue +++ b/src/JobsJobsJobs/App/src/components/layout/AppToaster.vue @@ -1,5 +1,5 @@ @@ -81,3 +81,9 @@ export default defineComponent({ name: 'AppToaster' }) + + diff --git a/src/JobsJobsJobs/App/src/components/layout/TitleBar.vue b/src/JobsJobsJobs/App/src/components/layout/TitleBar.vue index 6800689..b1eda59 100644 --- a/src/JobsJobsJobs/App/src/components/layout/TitleBar.vue +++ b/src/JobsJobsJobs/App/src/components/layout/TitleBar.vue @@ -20,8 +20,7 @@ export default defineComponent({ diff --git a/src/JobsJobsJobs/App/src/components/profile/SkillEdit.vue b/src/JobsJobsJobs/App/src/components/profile/SkillEdit.vue index e01afde..6015e7d 100644 --- a/src/JobsJobsJobs/App/src/components/profile/SkillEdit.vue +++ b/src/JobsJobsJobs/App/src/components/profile/SkillEdit.vue @@ -38,7 +38,7 @@ export default defineComponent({ required: true } }, - emits: ['remove', 'update:modelValue'], + emits: ['input', 'remove', 'update:modelValue'], setup (props, { emit }) { /** The skill being edited */ const skill : Ref = ref({ ...props.modelValue as Skill }) @@ -48,6 +48,7 @@ export default defineComponent({ updateValue: (key : string, value : string) => { skill.value = { ...skill.value, [key]: value } emit('update:modelValue', skill.value) + emit('input') } } } diff --git a/src/JobsJobsJobs/App/src/views/citizen/EditProfile.vue b/src/JobsJobsJobs/App/src/views/citizen/EditProfile.vue index 0f9ee69..95423c0 100644 --- a/src/JobsJobsJobs/App/src/views/citizen/EditProfile.vue +++ b/src/JobsJobsJobs/App/src/views/citizen/EditProfile.vue @@ -1,12 +1,12 @@