This commit is contained in:
Dennis
2020-10-21 08:47:06 +02:00
parent 06fb331ae4
commit 8f100fc027
3 changed files with 7 additions and 6 deletions

2
public/js/25.js vendored

File diff suppressed because one or more lines are too long

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -231,14 +231,15 @@
submit() {
this.$inertia.post(this.route('sites.store'), this.form, {
only: ['errors', 'flash', 'sites']
})
.then((response) => {
only: ['errors', 'flash', 'sites'],
onFinish: () => {
if (!Object.keys(this.$page.props.errors).length) {
this.form.domain = null;
this.form.server_id = null;
this.modalIsOpen = false;
}
});
}
});
},
confirmDelete(site) {