|
|
@@ -1,6 +1,9 @@
|
|
|
<template>
|
|
|
<main class="d-flex flex-row align-center">
|
|
|
- <span v-show="mdAndUp" class="mr-2 font-weight-bold on-neutral">{{ $t(label) }} : </span>
|
|
|
+ <span v-show="mdAndUp"
|
|
|
+ class="mr-2 font-weight-bold on-neutral">
|
|
|
+ {{ $t(label) }} :
|
|
|
+ </span>
|
|
|
|
|
|
<UiXeditableText
|
|
|
class="activity-year-input"
|
|
|
@@ -39,7 +42,7 @@ const organizationProfileStore = useOrganizationProfileStore()
|
|
|
const formStore = useFormStore()
|
|
|
const { mdAndUp } = useDisplay()
|
|
|
|
|
|
-const currentActivityYear: Ref<number | null> = ref(accessProfileStore.activityYear)
|
|
|
+const currentActivityYear: Ref<number | undefined> = ref(accessProfileStore.activityYear ?? undefined)
|
|
|
const yearPlusOne: boolean = !organizationProfileStore.isManagerProduct
|
|
|
const label: string = organizationProfileStore.isSchool ? 'schooling_year' : organizationProfileStore.isArtist ? 'season_year' : 'cotisation_year'
|
|
|
|
|
|
@@ -52,7 +55,7 @@ const setActivityYear = async (activityYear: number) => {
|
|
|
throw new Error("Error: 'year' shall be a valid year")
|
|
|
}
|
|
|
if (accessProfileStore.id === null) {
|
|
|
- throw new Error("Error: invalide access id")
|
|
|
+ throw new Error("Error: invalid access id")
|
|
|
}
|
|
|
formStore.setDirty(false)
|
|
|
|