File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/platform-ui/src/components/Courses Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1313 </v-card-text >
1414
1515 <v-card-actions >
16- <router-link :to =" `/q/${courseConfig.name.replaceAll(' ', '_')}`" style =" text-decoration : none " >
17- <v-btn color =" primary" >More Info</v-btn >
18- </router-link >
16+ <v-btn color =" primary" @click =" navigateToInfo" >More Info</v-btn >
1917 <v-btn data-cy =" register-course-button" :loading =" addingCourse" color =" primary" @click =" registerForCourse" >
2018 Register
2119 </v-btn >
@@ -69,6 +67,10 @@ export default defineComponent({
6967 await (await getCurrentUser ()).registerForCourse (this .courseId );
7068 this .$emit (' refresh' );
7169 },
70+ navigateToInfo() {
71+ const path = ` /q/${this .courseConfig ?.name .replaceAll (' ' , ' _' )} ` ;
72+ this .$router .push (path );
73+ },
7274 },
7375});
7476 </script >
You can’t perform that action at this time.
0 commit comments