Skip to content
Snippets Groups Projects
Commit 351db648 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch '944-make-calendar-type-select-button-group-mandatory' into 'master'

Resolve "Make calendar type select button group mandatory"

Closes #944

See merge request !1355
parents 52e27a85 76d9804f
No related branches found
No related tags found
1 merge request!1355Resolve "Make calendar type select button group mandatory"
Pipeline #158545 failed
......@@ -14,17 +14,20 @@ export default {
{
type: "month",
translationKey: "calendar.month",
icon: "calendar-month-outline",
icon: "mdi-calendar-month-outline",
iconActive: "mdi-calendar-month",
},
{
type: "week",
translationKey: "calendar.week",
icon: "calendar-week-outline",
icon: "mdi-calendar-week-outline",
iconActive: "mdi-calendar-week",
},
{
type: "day",
translationKey: "calendar.day",
icon: "calendar-today-outline",
icon: "mdi-calendar-today-outline",
iconActive: "mdi-calendar-today",
},
],
};
......@@ -46,14 +49,16 @@ export default {
</script>
<template>
<v-btn-toggle dense v-model="innerValue" class="mx-2">
<v-btn-toggle dense mandatory v-model="innerValue" class="mx-2">
<v-btn
v-for="calendarType in availableCalendarTypes"
:value="calendarType.type"
:key="calendarType.type"
>
<v-icon v-if="$vuetify.breakpoint.smAndDown">{{
"mdi-" + calendarType.icon
calendarType.type === innerValue
? calendarType.iconActive
: calendarType.icon
}}</v-icon>
<span class="hidden-sm-and-down">{{ nameForMenu(calendarType) }}</span>
</v-btn>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment