Skip to content

Commit

Permalink
feat(events): add timezone tooltip. Clarifies HELP-968 (#277)
Browse files Browse the repository at this point in the history
* feat(events): add timezone tooltip

* chore: use component
  • Loading branch information
mibaru-aegee committed Mar 14, 2020
1 parent 28c5352 commit 5620eab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/components/tooltips/TimezoneTooltip.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
<tooltip text="The date and time are in your local timezone"></tooltip>
</template>
12 changes: 7 additions & 5 deletions src/views/events/Single.vue
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,19 @@
<td>{{ event.application_status | capitalize }}</td>
</tr>
<tr>
<th>Application period starts</th>
<th>Application period starts <timezone-tooltip /></th>
<td>{{ event.application_starts | datetime }}</td>
</tr>
<tr>
<th>Application period ends</th>
<th>Application period ends <timezone-tooltip /></th>
<td>{{ event.application_ends | datetime }}</td>
</tr>
<tr>
<th>Starts</th>
<th>Starts <timezone-tooltip /></th>
<td>{{ event.starts | datetime }}</td>
</tr>
<tr>
<th>Ends</th>
<th>Ends <timezone-tooltip /></th>
<td>{{ event.ends | datetime }}</td>
</tr>
<tr>
Expand Down Expand Up @@ -222,13 +222,15 @@ import Mapbox from 'mapbox-gl'
import { MglMap, MglMarker, MglPopup, MglNavigationControl } from 'vue-mapbox'
import constants from '../../constants'
import credentials from '../../credentials'
import TimezoneTooltip from '../../components/tooltips/TimezoneTooltip'
export default {
components: {
MglMap,
MglMarker,
MglPopup,
MglNavigationControl
MglNavigationControl,
TimezoneTooltip
},
name: 'SingleEvent',
data () {
Expand Down

0 comments on commit 5620eab

Please sign in to comment.