Skip to content

Commit

Permalink
Show time in app bar for interval menu
Browse files Browse the repository at this point in the history
  • Loading branch information
wkramer committed Feb 21, 2024
1 parent 83bb062 commit 75beb7f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/components/time-control/TimeControlMenu.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<template>
<v-menu left bottom :close-on-content-click="false" class="menu">
<template v-slot:activator="{ props }">
<v-btn v-bind="props" icon>
<v-icon>mdi-clock-start</v-icon>
<template v-slot:activator="{ props, isActive }">
<v-btn v-bind="props" variant="tonal" rounded>
{{
Intl.DateTimeFormat('nl', {
hour: '2-digit',
minute: '2-digit',
timeZoneName: 'short',
}).format(store.systemTime)
}}
<v-icon>{{ isActive ? 'mdi-chevron-up' : 'mdi-chevron-down' }}</v-icon>
</v-btn>
</template>

Expand Down

0 comments on commit 75beb7f

Please sign in to comment.