You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
943 B

3 years ago
<app-action-new>
<button class="button m-bottom-0 m-top-5" onclick={ (event) => { handleNew(event) } }>
<svg class="icon fill-text-contrast" aria-hidden="true">
<use xlink:href="/symbol-defs.svg#icon-close"></use>
</svg>
New
</button>
<script>
import taskFormStore from './../stores/taskForm.js'
/**
*
*
*
*/
export default {
state: {
form: undefined
},
onMounted()
{
this.state.form = document.querySelector('#task-form').firstChild
},
/**
*
* @param {[type]} event
* @return {[type]}
*/
handleNew(event)
{
document.querySelector('#task-form').firstChild.trigger('open')
}
}
</script>
</app-action-new>