Use new-environment component to toggle

- Moves the form to the innermost place it can go
This commit is contained in:
Montana
2019-05-14 15:11:10 -04:00
parent 408fa4e618
commit ab874a06f8
3 changed files with 45 additions and 30 deletions

View File

@@ -0,0 +1,24 @@
import FormMixin from '../../mixins/form'
import textinput from '../text_input'
export default {
name: 'new-environment',
mixins: [FormMixin],
components: {
textinput,
},
data: function() {
return {
open: false,
}
},
methods: {
toggle: function() {
this.open = !this.open
},
},
}