-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: init public/protected selection button * chore: init layout protected courses * fix: little layout * chore: private option for course * chore: start link generation screen * chore: backend creation of invitation link * chore: refactor link generation logic + save service link * chore: search based on invitation link * fix: link expire date * chore: start translations * fix: stepper content translated * fix: cleanup + linting * fix: service tests * fix: translation * fix: arrows * fix: empty slot value for search results * fix: space
- Loading branch information
Showing
5 changed files
with
63 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
<script setup lang="ts"> | ||
import SelectButton from 'primevue/selectbutton'; | ||
import { computed, ref } from 'vue'; | ||
import { useI18n } from 'vue-i18n'; | ||
import PublicSearchCourseView from './search/PublicSearchCourseView.vue'; | ||
import ProtectedSearchCourseView from './search/ProtectedSearchCourseView.vue'; | ||
/* Composable injections */ | ||
const { t } = useI18n(); | ||
/* State of the public/protected course */ | ||
const publicCourses = ref<boolean>(true); | ||
/* Options for the select button */ | ||
const options = computed(() => [ | ||
{ label: t('components.button.public'), value: true }, | ||
{ label: t('components.button.protected'), value: false }, | ||
]); | ||
</script> | ||
|
||
<template> | ||
<!-- If the public option is set, display the search option for all the public courses --> | ||
<PublicSearchCourseView v-if="publicCourses"> | ||
<template #publicButton> | ||
<SelectButton | ||
v-model="publicCourses" | ||
:options="options" | ||
option-value="value" | ||
option-label="label" | ||
:allow-empty="false" | ||
/> | ||
</template> | ||
</PublicSearchCourseView> | ||
|
||
<!-- If the protected option is set, display the search option for all the protected courses --> | ||
<ProtectedSearchCourseView v-else> | ||
<template #publicButton> | ||
<SelectButton | ||
v-model="publicCourses" | ||
:options="options" | ||
option-value="value" | ||
option-label="label" | ||
:allow-empty="false" | ||
/> | ||
</template> | ||
</ProtectedSearchCourseView> | ||
</template> | ||
|
||
<style scoped lang="scss"></style> | ||
<script setup lang="ts"> | ||
import SelectButton from 'primevue/selectbutton'; | ||
import { computed, ref } from 'vue'; | ||
import { useI18n } from 'vue-i18n'; | ||
import PublicSearchCourseView from './search/PublicSearchCourseView.vue'; | ||
import ProtectedSearchCourseView from './search/ProtectedSearchCourseView.vue'; | ||
/* Composable injections */ | ||
const { t } = useI18n(); | ||
/* State of the public/protected course */ | ||
const publicCourses = ref<boolean>(true); | ||
/* Options for the select button */ | ||
const options = computed(() => [ | ||
{ label: t('components.button.public'), value: true }, | ||
{ label: t('components.button.protected'), value: false }, | ||
]); | ||
</script> | ||
|
||
<template> | ||
<!-- If the public option is set, display the search option for all the public courses --> | ||
<PublicSearchCourseView v-if="publicCourses"> | ||
<template #publicButton> | ||
<SelectButton | ||
v-model="publicCourses" | ||
:options="options" | ||
option-value="value" | ||
option-label="label" | ||
:allow-empty="false" | ||
/> | ||
</template> | ||
</PublicSearchCourseView> | ||
|
||
<!-- If the protected option is set, display the search option for all the protected courses --> | ||
<ProtectedSearchCourseView v-else> | ||
<template #publicButton> | ||
<SelectButton | ||
v-model="publicCourses" | ||
:options="options" | ||
option-value="value" | ||
option-label="label" | ||
:allow-empty="false" | ||
/> | ||
</template> | ||
</ProtectedSearchCourseView> | ||
</template> | ||
|
||
<style scoped lang="scss"></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters