Skip to content

Commit 91a4902

Browse files
authored
Merge branch 'development' into dependabot/npm_and_yarn/websocket-extensions-0.1.4
2 parents d5a0569 + c7467d8 commit 91a4902

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

src/layouts/classes.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<v-app>
3-
<v-overlay v-if="loading" color="#0071C2" opacity="1" z-index="9999">
3+
<v-overlay :value="loading" color="#0071C2" opacity="1" z-index="9999">
44
<div class="loader">
55
Loading
66
</div>

src/layouts/default.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<template>
22
<v-app>
3-
<v-overlay
4-
v-if="loading"
5-
color="$color-base-color-01"
6-
opacity="1"
7-
z-index="9999"
8-
>
3+
<v-overlay :value="loading" color="#0071C2" opacity="1" z-index="9999">
94
<div class="loader">
105
Loading
116
</div>

src/layouts/protected.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<v-app>
3-
<v-overlay v-if="loading" color="#0071C2" opacity="1" z-index="9999">
3+
<v-overlay :value="loading" color="#0071C2" opacity="1" z-index="9999">
44
<div class="loader">
55
Loading
66
</div>

src/store/modules/classData.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ export class ClassDataStore extends VuexModule implements ClassData {
5050
const dateStart = new Date(
5151
this.displayDate.getFullYear(),
5252
this.displayDate.getMonth(),
53-
this.displayDate.getDay(),
53+
this.displayDate.getDate(),
5454
0,
5555
0,
5656
0
5757
)
5858
const dateEnd = new Date(
5959
this.displayDate.getFullYear(),
6060
this.displayDate.getMonth(),
61-
this.displayDate.getDay(),
61+
this.displayDate.getDate(),
6262
23,
6363
59,
6464
59
@@ -115,6 +115,7 @@ export class ClassDataStore extends VuexModule implements ClassData {
115115
.collection('classData')
116116
.doc(classId)
117117
.collection('Lessons')
118+
.orderBy('startTime')
118119
.get()
119120
.then(QuerySnapshot => {
120121
QuerySnapshot.forEach(function(doc) {
@@ -131,9 +132,6 @@ export class ClassDataStore extends VuexModule implements ClassData {
131132
.catch(() => {
132133
return Promise.reject(new Error('クラスIDが間違っています'))
133134
})
134-
lessons.sort((a, b) => {
135-
return a.startTime > b.startTime ? 1 : -1
136-
})
137135

138136
await firebase
139137
.firestore()

0 commit comments

Comments
 (0)