Skip to content

Commit b129c82

Browse files
committed
linter: make prop camelCase
1 parent f7b8f85 commit b129c82

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/platform-ui/src/components/Classrooms/JoinCode.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default defineComponent({
2525
name: 'JoinCode',
2626
2727
props: {
28-
_id: {
28+
classroomId: {
2929
type: String,
3030
required: true,
3131
},
@@ -42,10 +42,10 @@ export default defineComponent({
4242
async created() {
4343
const dl = getDataLayer();
4444
45-
this.classroomDB = await dl.getClassroomDB(this._id, 'teacher');
45+
this.classroomDB = await dl.getClassroomDB(this.classroomId, 'teacher');
4646
this.classroomCfg = this.classroomDB.getConfig();
4747
await Promise.all([]);
48-
log(`Route loaded w/ (prop) _id: ${this._id}`);
48+
log(`Route loaded w/ (prop) _id: ${this.classroomId}`);
4949
log(`Config:
5050
${JSON.stringify(this.classroomCfg)}`);
5151
this.updatePending = false;

packages/platform-ui/src/router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ const router = createRouter({
107107
component: ClassroomCtrlPanel,
108108
},
109109
{
110-
path: '/classrooms/:_id/code',
110+
path: '/classrooms/:classroomId/code',
111111
props: true,
112-
alias: '/c/:_id',
112+
alias: '/c/:classroomId',
113113
component: JoinCode,
114114
},
115115
{

0 commit comments

Comments
 (0)