We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 698565d commit a5cb5d1Copy full SHA for a5cb5d1
1 file changed
logic/classes.ts
@@ -41,7 +41,11 @@ export function buttonOptions(checkClass: any) {
41
]
42
if (checkClass.available == 'Full') icon = 'mdi-alert-plus'
43
// class itself is added, but full
44
- if (sameCourse && sameCourse.crn == checkClass.crn) color = 'success'
+ if (sameCourse && sameCourse.crn == checkClass.crn) {
45
+ color = 'success'
46
+ } else if (sameCourse && sameCourse.crn != checkClass.crn) {
47
+ color = 'warning'
48
+ }
49
}
50
51
let buttonOptions = {
0 commit comments