New sessions should not be accepted
This commit is contained in:
parent
24a0ed9cb8
commit
6725c58b80
|
@ -2,7 +2,7 @@
|
|||
<div id="app" class="antialiased min-h-screen font-sans bg-gray-100 text-black p-12">
|
||||
<div class="w-full max-w-2xl mx-auto">
|
||||
<accepted-sessions-list :sessions="sessions" />
|
||||
<session-form @submitted="addSession($event)" />
|
||||
<session-form />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -46,10 +46,6 @@ export default {
|
|||
},
|
||||
|
||||
methods: {
|
||||
addSession (session) {
|
||||
this.sessions.push(session)
|
||||
},
|
||||
|
||||
getSaveStateConfig () {
|
||||
return {
|
||||
cacheKey: 'app'
|
||||
|
|
|
@ -37,7 +37,7 @@ export default {
|
|||
errors: [],
|
||||
form: {
|
||||
body: '',
|
||||
field_session_status: 'accepted',
|
||||
field_session_status: 'submitted',
|
||||
field_session_type: 'full',
|
||||
title: ''
|
||||
},
|
||||
|
@ -87,8 +87,6 @@ export default {
|
|||
const title = data.data.attributes.title
|
||||
this.messages.push(`Session ${title} has been created.`)
|
||||
|
||||
this.$emit('submitted', data.data)
|
||||
|
||||
this.form.body = ''
|
||||
this.form.title = ''
|
||||
}).catch(({ response: { data } }) => {
|
||||
|
|
Loading…
Reference in a new issue