Add remove CLIN confirmation modal

This commit is contained in:
leigh-mil
2019-09-04 16:21:30 -04:00
parent 46345657c7
commit eb58612182
2 changed files with 44 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
import DateSelector from './date_selector'
import { emitEvent } from '../lib/emitters'
import Modal from '../mixins/modal'
import optionsinput from './options_input'
import textinput from './text_input'
@@ -19,6 +20,8 @@ export default {
textinput,
},
mixins: [Modal],
props: {
initialClinIndex: Number,
initialClinType: String,
@@ -134,6 +137,7 @@ export default {
emitEvent('remove-clin', this, {
clinIndex: this.clinIndex,
})
this.closeModal('remove_clin')
},
},
@@ -145,5 +149,9 @@ export default {
return `CLIN`
}
},
removeModalId: function() {
return `remove-clin-${this.clinIndex}`
},
},
}