+
{{ t('types.roles.' + value) }}
diff --git a/frontend/src/components/YearSelector.vue b/frontend/src/components/YearSelector.vue
index 65a73a86..157c9bbf 100644
--- a/frontend/src/components/YearSelector.vue
+++ b/frontend/src/components/YearSelector.vue
@@ -22,24 +22,15 @@ const year = defineModel();
-
+
{{ t('components.buttons.academic_year') }} {{ value }} -
- {{ value + 1 }}{{ t('components.buttons.academic_year') }} {{ value }} - {{ value + 1 }}
- {{ t('components.buttons.academic_year') }}
- {{ (option as any).label }}
+ {{ t('components.buttons.academic_year') }} {{ (option as any).label }}
diff --git a/frontend/src/components/courses/CourseDetailCard.vue b/frontend/src/components/courses/CourseDetailCard.vue
index a49b20eb..e5c87cb3 100644
--- a/frontend/src/components/courses/CourseDetailCard.vue
+++ b/frontend/src/components/courses/CourseDetailCard.vue
@@ -28,11 +28,8 @@ const images = Object.keys(
class="w-full h-12rem border-round-top"
style="object-fit: cover; margin-bottom: -4px"
:alt="course.name ?? ''"
- :src="
- images[
- Math.ceil(Math.random() * images.length) % images.length
- ]
- " />
+ :src="images[Math.ceil(Math.random() * images.length) % images.length]"
+ />
{{ course.name }}
@@ -44,13 +41,8 @@ const images = Object.keys(
{{ course.getExcerpt() }}
-
-
+
+
diff --git a/frontend/src/components/courses/CourseGeneralCard.vue b/frontend/src/components/courses/CourseGeneralCard.vue
index 42d6798e..a29ccfce 100644
--- a/frontend/src/components/courses/CourseGeneralCard.vue
+++ b/frontend/src/components/courses/CourseGeneralCard.vue
@@ -35,7 +35,8 @@ function getFacultyIcon(faculty: Faculty): string {
:src="getFacultyIcon(course.faculty)"
:alt="course.faculty.name"
class="absolute top-0 left-0 w-3rem"
- v-if="course.faculty !== null" />
+ v-if="course.faculty !== null"
+ />
diff --git a/frontend/src/components/courses/CourseList.vue b/frontend/src/components/courses/CourseList.vue
index ec1d1143..5cc39c62 100644
--- a/frontend/src/components/courses/CourseList.vue
+++ b/frontend/src/components/courses/CourseList.vue
@@ -29,7 +29,8 @@ const { t } = useI18n();
class="col-12 md:col-6 lg:col-4"
:class="'xl:col-' + 12 / cols"
v-for="course in courses"
- :key="course.id">
+ :key="course.id"
+ >
@@ -41,11 +42,7 @@ const { t } = useI18n();
-
+
diff --git a/frontend/src/components/courses/students/StudentCourseJoinButton.vue b/frontend/src/components/courses/students/StudentCourseJoinButton.vue
index b8b3622b..458379b0 100644
--- a/frontend/src/components/courses/students/StudentCourseJoinButton.vue
+++ b/frontend/src/components/courses/students/StudentCourseJoinButton.vue
@@ -25,17 +25,12 @@ async function joinCourse(): Promise
{
addSuccessMessage(
t('toasts.messages.success'),
- t('toasts.messages.courses.enrollment.success', [
- props.course.name,
- ]),
+ t('toasts.messages.courses.enrollment.success', [props.course.name]),
);
await refreshUser();
} catch (error) {
- addErrorMessage(
- t('toasts.messages.error'),
- t('toasts.messages.courses.enrollment.error', [props.course.name]),
- );
+ addErrorMessage(t('toasts.messages.error'), t('toasts.messages.courses.enrollment.error', [props.course.name]));
}
}
@@ -53,10 +48,7 @@ async function leaveCourse(): Promise {
await refreshUser();
} catch (error) {
- addErrorMessage(
- t('toasts.messages.error'),
- t('toasts.messages.courses.leave.error', [props.course.name]),
- );
+ addErrorMessage(t('toasts.messages.error'), t('toasts.messages.courses.leave.error', [props.course.name]));
}
}
@@ -69,7 +61,8 @@ async function leaveCourse(): Promise {
icon="pi pi-arrow-right"
@click="joinCourse"
v-if="!student.hasCourse(course)"
- link />
+ link
+ />