Skip to content
Snippets Groups Projects
Commit 4c477541 authored by permcu's avatar permcu
Browse files

Go back to absence-creation-form on cancel

parent efc8450c
No related branches found
No related tags found
1 merge request!356Add dialog for creation of long-term absences
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<!-- secondary --> <!-- secondary -->
<!-- TODO: Return to form on cancel? form=true --> <!-- TODO: Return to form on cancel? form=true -->
<cancel-button <cancel-button
@click="popup = false" @click="cancel"
:disabled="loading" :disabled="loading"
/> />
<!-- primary --> <!-- primary -->
...@@ -89,6 +89,10 @@ export default { ...@@ -89,6 +89,10 @@ export default {
}; };
}, },
methods: { methods: {
cancel() {
this.popup = false;
this.form = true;
},
confirm() { confirm() {
// TODO: Send mutation (shown in absence-creation-summary) // TODO: Send mutation (shown in absence-creation-summary)
popup = false; popup = false;
......
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