File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 44
55 <h3 >
66 Join code: {{ classroomCfg.joinCode }}
7- <router-link :to =" `/classrooms/${_id }/code`" >
7+ <router-link :to =" `/classrooms/${classroomId }/code`" >
88 <v-btn size =" x-small" icon =" mdi-fullscreen" color =" accent" alt =" Make Fullscreen" > </v-btn >
99 </router-link >
1010 </h3 >
@@ -85,7 +85,7 @@ export default defineComponent({
8585 name: ' ClassroomCtrlPanel' ,
8686
8787 props: {
88- _id : {
88+ classroomId : {
8989 type: String ,
9090 required: true ,
9191 },
@@ -137,11 +137,14 @@ export default defineComponent({
137137 async created() {
138138 try {
139139 // Get classroom DB from data layer
140- this .classroomDB = (await getDataLayer ().getClassroomDB (this ._id , ' teacher' )) as TeacherClassroomDBInterface ;
140+ this .classroomDB = (await getDataLayer ().getClassroomDB (
141+ this .classroomId ,
142+ ' teacher'
143+ )) as TeacherClassroomDBInterface ;
141144 this .assignedContent = await this .classroomDB .getAssignedContent ();
142145 this .classroomCfg = this .classroomDB .getConfig ();
143146
144- console .log (` [ClassroomCtrlPanel] Route loaded w/ (prop) _id: ${this ._id } ` );
147+ console .log (` [ClassroomCtrlPanel] Route loaded w/ (prop) _id: ${this .classroomId } ` );
145148 console .log (` [ClassroomCtrlPanel] Config: ${JSON .stringify (this .classroomCfg )} ` );
146149
147150 // Get course list from data layer
Original file line number Diff line number Diff line change @@ -101,9 +101,9 @@ const router = createRouter({
101101 component : Classrooms ,
102102 } ,
103103 {
104- path : '/classrooms/:_id ' ,
104+ path : '/classrooms/:classroomId ' ,
105105 props : true ,
106- alias : '/c/:_id ' ,
106+ alias : '/c/:classroomId ' ,
107107 component : ClassroomCtrlPanel ,
108108 } ,
109109 {
You can’t perform that action at this time.
0 commit comments