diff --git a/js/components/clin_fields.js b/js/components/clin_fields.js index a7f646eb..cd01e43b 100644 --- a/js/components/clin_fields.js +++ b/js/components/clin_fields.js @@ -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}` + }, }, } diff --git a/templates/task_orders/step_3.html b/templates/task_orders/step_3.html index 2e548df1..0b8a1dd4 100644 --- a/templates/task_orders/step_3.html +++ b/templates/task_orders/step_3.html @@ -32,7 +32,7 @@ @@ -327,6 +327,41 @@

+ +
+ +
{% endmacro %}