Add "confirm" button to close the component
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2020-11-28 14:06:29 +01:00
parent 776c6041f2
commit d68b4d6dd7
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 17 additions and 2 deletions

View File

@ -96,6 +96,13 @@
class="input"
v-model="flatPickrDate"
/>
<a
class="button is-outlined is-primary has-no-shadow is-fullwidth"
@click="close"
>
Confirm
</a>
</div>
</transition>
</div>
@ -193,10 +200,13 @@ export default {
return
}
this.show = false
this.$emit('close')
this.close()
}
},
close() {
this.show = false
this.$emit('close')
},
setDate(date) {
if (this.date === null) {
this.date = new Date()

View File

@ -49,6 +49,11 @@
width: 2rem;
text-align: center;
}
&.button {
margin: 1rem;
width: calc(100% - 2rem);
}
}
.flatpickr-calendar {