-
+
-
+
diff --git a/frontend/src/components/courses/ShareCourseButton.vue b/frontend/src/components/courses/ShareCourseButton.vue
index 288ba277..f6302fc9 100644
--- a/frontend/src/components/courses/ShareCourseButton.vue
+++ b/frontend/src/components/courses/ShareCourseButton.vue
@@ -8,6 +8,7 @@ import { type Course } from '@/types/Course.ts';
import { PrimeIcons } from 'primevue/api';
import { ref, computed } from 'vue';
import { useCourses } from '@/composables/services/course.service';
+import Editor from '@/components/forms/Editor.vue';
/* Composable injections */
const { t } = useI18n();
@@ -37,9 +38,7 @@ async function handleShare(): Promise
{
* Copies the invitation link to the clipboard.
*/
function copyToClipboard(): void {
- if (props.course.invitation_link !== null) {
- navigator.clipboard.writeText(invitationLink.value);
- }
+ navigator.clipboard.writeText(invitationLink.value);
}
/**
@@ -58,7 +57,6 @@ const invitationLink = computed(() => {
class="custom-button"
style="height: 51px; width: 51px"
@click="displayShareCourse = true"
- v-if="props.course.private_course"
/>