Skip to content

Commit

Permalink
Fixed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lodewiges committed Oct 27, 2024
1 parent 265bb3c commit 968e36e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/components/tools/study-room-presence.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const StudyRoomPresence = Component.extend({
label: 'Chillen',
},
{
value: 'Studying',
value: 'studying',
label: 'Studeren',
},
{
Expand Down Expand Up @@ -72,9 +72,9 @@ const StudyRoomPresence = Component.extend({
})
.mapBy('status');

if (currentStatusses.includes('present')) {
return 'present';
} else if (currentStatusses.includes('Studeren')) {
if (currentStatusses.includes('chilling')) {
return 'Chillen';
} else if (currentStatusses.includes('studeren')) {
return 'Studying';
}

Check warning on line 80 in app/components/tools/study-room-presence.js

View check run for this annotation

Codecov / codecov/patch

app/components/tools/study-room-presence.js#L77-L80

Added lines #L77 - L80 were not covered by tests
Expand All @@ -101,7 +101,7 @@ const StudyRoomPresence = Component.extend({
{

Check warning on line 101 in app/components/tools/study-room-presence.js

View check run for this annotation

Codecov / codecov/patch

app/components/tools/study-room-presence.js#L100-L101

Added lines #L100 - L101 were not covered by tests
startTime: moment().startOf('minute').toDate(),
endTime: moment().startOf('minute').add(1, 'hours').toDate(),
status: 'present',
status: 'Studying',
user: this.session.currentUser,
}
);
Expand Down
12 changes: 12 additions & 0 deletions app/styles/components/tools/room-presence.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@
background-color: $brand-danger;
}

.label-chilling {
background-color: $brand-success;
}

.label-studying {
background-color: $brand-warning;
}

.label-banaan {
background-color: $brand-success;
}

.edit-presence {
.edit-presence-row {
margin: 5px;
Expand Down

0 comments on commit 968e36e

Please sign in to comment.