feat(reminders): add confirm button
This commit is contained in:
parent
ae177c73ea
commit
02da1e171e
@ -8,7 +8,7 @@
|
|||||||
}"
|
}"
|
||||||
ref="popup"
|
ref="popup"
|
||||||
>
|
>
|
||||||
<slot name="content" :isOpen="open"/>
|
<slot name="content" :isOpen="open" :toggle="toggle"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
{{ reminderText }}
|
{{ reminderText }}
|
||||||
</SimpleButton>
|
</SimpleButton>
|
||||||
</template>
|
</template>
|
||||||
<template #content="{isOpen}">
|
<template #content="{isOpen, toggle}">
|
||||||
<Card class="reminder-options-popup" :class="{'is-open': isOpen}" :padding="false">
|
<Card class="reminder-options-popup" :class="{'is-open': isOpen}" :padding="false">
|
||||||
<div class="options" v-if="showFormSwitch === null">
|
<div class="options" v-if="showFormSwitch === null">
|
||||||
<SimpleButton
|
<SimpleButton
|
||||||
@ -36,6 +36,15 @@
|
|||||||
v-model="reminderDate"
|
v-model="reminderDate"
|
||||||
@update:modelValue="setReminderDate"
|
@update:modelValue="setReminderDate"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<x-button
|
||||||
|
v-if="showFormSwitch !== null"
|
||||||
|
class="reminder__close-button"
|
||||||
|
:shadow="false"
|
||||||
|
@click="toggle"
|
||||||
|
>
|
||||||
|
{{ $t('misc.confirm') }}
|
||||||
|
</x-button>
|
||||||
</Card>
|
</Card>
|
||||||
</template>
|
</template>
|
||||||
</Popup>
|
</Popup>
|
||||||
@ -212,4 +221,9 @@ function translateUnit(amount: number, unit: PeriodUnit): string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.reminder__close-button {
|
||||||
|
margin: .5rem;
|
||||||
|
width: calc(100% - 1rem);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user