Use keep-alive to preserve cor data on toggle

This commit is contained in:
Montana
2019-01-24 14:40:02 -05:00
parent 02c3690c49
commit f096b107ab
2 changed files with 34 additions and 7 deletions

View File

@@ -2,6 +2,27 @@ import FormMixin from '../../mixins/form'
import textinput from '../text_input'
import checkboxinput from '../checkbox_input'
const cordata = {
name: 'cordata',
components: {
textinput,
checkboxinput,
},
mixins: [FormMixin],
props: {
initialCorInvite: Boolean,
},
data: function() {
return {
cor_invite: this.initialCorInvite,
}
},
}
export default {
name: 'oversight',
@@ -10,6 +31,7 @@ export default {
components: {
textinput,
checkboxinput,
cordata,
},
props: {