Fix selection on modal, fix a typo

This commit is contained in:
Montana
2018-09-10 12:26:13 -04:00
parent 2bbb859ad8
commit 5b973ab1e4
3 changed files with 106 additions and 74 deletions

View File

@@ -0,0 +1,40 @@
import FormMixin from '../../mixins/form'
import textinput from '../text_input'
import Selector from '../selector'
import Modal from '../../mixins/modal'
import toggler from '../toggler'
export default {
name: 'edit-workspace-member',
mixins: [FormMixin, Modal],
components: {
toggler,
Modal,
Selector,
textinput
},
props: {
choices: Array,
initialData: String
},
data: function () {
return { value: this.initialData }
},
methods: {
change: function (e) {
this.value = e.target.value
},
readableName: function (role) {
return role.replace(/[_]/g, " ")
},
},
mounted: function () {
console.log(this.initialData, this.choices)
}
}