Skip to content

Commit f2838c9

Browse files
committed
Cleanup
1 parent fccb330 commit f2838c9

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/components/ClockButtons.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
v-btn(text color='success' @click='clockOut(true)' data-cy='confirm-clock-out-button') Yes, clock out
2020

2121
v-fade-transition
22-
v-overlay(v-if="loading", absolute, opacity=".2")
22+
v-overlay(v-if='togglingClock' absolute opacity='.2')
2323
v-progress-circular(indeterminate)
2424

2525
.d-flex.flex-row.justify-center.gap-small

src/components/UpcomingShiftList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
v-toolbar-title
55
h6.text-h6 Upcoming shifts
66

7-
div(v-if='!upcomingShifts.length')
7+
div(v-if='!loading && !upcomingShifts.length')
88
p.text-center
99
| You have no shifts assigned. Go have fun! 🥂🎉
1010

1111
div(v-else)
12-
shift-list(:shifts='upcomingShifts')
12+
shift-list(:shifts='upcomingShifts' :loading='loading')
1313

1414
.my-4.d-flex.justify-center
1515
v-btn(

src/layouts/Breadcrumbs.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export default class Breadcrumbs extends Vue {
3131
@Watch('breadcrumbs')
3232
breadcrumbsChanged(newVal: any, oldVal: any) {
3333
// Scroll to right of container automatically
34-
this.$refs.scrollContainer.$el.scrollLeft = this.$refs.scrollContainer.$el.scrollWidth
34+
const container: any = this.$refs.scrollContainer
35+
container.$el.scrollLeft = container.$el.scrollWidth
3536
}
3637
3738
get breadcrumbs() {

0 commit comments

Comments
 (0)