Commit f87ff3ba56631d83ff05e58f96c9bc290c53c456

Authored by Amber Dev
1 parent f8968b6fb3

cleared bugs

src/Services/GetApis.js
... ... @@ -40,7 +40,7 @@ export default {
40 40 async getCourseDiscussionesList(params) {
41 41 try {
42 42 let response = await this.getMethod("/getCourseDiscussionesList", {
43   - // courseId: params.courseId,
  43 + courseId: params.courseId,
44 44 classId: params.classId,
45 45 })
46 46 this.courseDiscussionItems = response.data.data
... ...
src/pages/Dashboard/CourseDetails.vue
... ... @@ -20,8 +20,8 @@
20 20 </v-snackbar>
21 21  
22 22 <v-container class="pt-0">
23   - <v-layout row class="mt-1">
24   - <v-flex xs8>
  23 + <v-layout row wrap class="mt-1">
  24 + <v-flex xs12 md8>
25 25 <div
26 26 class="title side-bar-color font-weight-bold"
27 27 >Welcome to the {{courseDetails[0].courseId.courseName}} Course for {{courseDetails[0].classId.classNum}} class</div>
... ... @@ -77,7 +77,7 @@
77 77 </v-flex>
78 78 <v-spacer></v-spacer>
79 79 <!-- COURSES -->
80   - <v-flex xs3>
  80 + <v-flex xs12 md3>
81 81 <v-card class="elevation-0 card-border" height="100%">
82 82 <v-container class="pt-0">
83 83 <div class="side-bar-color font-weight-bold title">Courses</div>
... ...
src/pages/Dashboard/CourseDiscussionForum.vue
... ... @@ -131,8 +131,8 @@
131 131 </v-dialog>
132 132  
133 133 <v-container grid-list-xl class="pt-0">
134   - <v-layout row class="mt-1">
135   - <v-flex xs8>
  134 + <v-layout row wrap class="mt-1">
  135 + <v-flex xs12 sm12 md9>
136 136 <v-layout column>
137 137 <!-- HEADING -->
138 138 <v-flex>
... ... @@ -173,10 +173,10 @@
173 173 >
174 174 <template slot="items" slot-scope="props">
175 175 <tr class="tr">
176   - <td class="td td-row text-xs-center">{{ props.item.courseId.courseName}}</td>
177   - <td class="td td-row text-xs-center">{{ props.item.studentId.name }}</td>
178   - <td class="td td-row text-xs-center">{{ props.item.courseId.courseName}}</td>
  176 + <td class="td td-row text-xs-center">{{ props.item.subject}}</td>
179 177 <td class="td td-row text-xs-center">{{ props.item.studentId.name }}</td>
  178 + <td class="td td-row text-xs-center">-</td>
  179 + <td class="td td-row text-xs-center">{{ props.item.forumThread.length }}</td>
180 180 </tr>
181 181 </template>
182 182 <v-alert
... ... @@ -208,7 +208,7 @@
208 208 <v-spacer></v-spacer>
209 209  
210 210 <!-- COURSES - positioned to the right of the page -->
211   - <v-flex xs3>
  211 + <v-flex xs12 sm12 md3>
212 212 <v-card class="elevation-0 card-border" height="100%">
213 213 <v-container class="pt-0">
214 214 <div class="side-bar-color font-weight-bold title">Courses</div>
... ... @@ -258,7 +258,7 @@ export default {
258 258 courseDiscussionHeaders: [
259 259 {
260 260 text: "Discussion",
261   - align: "",
  261 + align: "center",
262 262 sortable: false,
263 263 value: ""
264 264 },
... ... @@ -314,7 +314,7 @@ export default {
314 314 this.addForumParams.upload = imageUrl;
315 315 }
316 316 this.loading = true;
317   - http()
  317 + await http()
318 318 .post("/createCourseDiscussion", this.addForumParams)
319 319 .then(response => {
320 320 this.snackbar = true;
... ... @@ -331,6 +331,7 @@ export default {
331 331 this.snackbarColor = "error";
332 332 this.loading = false;
333 333 });
  334 +
334 335 /* getCourseDiscussionesList - to populate the data table */
335 336 await this.getCourseDiscussionesList({
336 337 courseId: this.$route.query.courseId,
... ...