Remove unused nestedcheckbox vue component

This commit is contained in:
leigh-mil 2019-09-10 13:16:16 -04:00
parent d33332034a
commit ca39d7107d
4 changed files with 0 additions and 41 deletions

View File

@ -1,13 +1,8 @@
import { emitEvent } from '../lib/emitters'
import nestedcheckboxinput from './nested_checkbox_input'
export default {
name: 'checkboxinput',
components: {
nestedcheckboxinput,
},
props: {
name: String,
initialChecked: Boolean,

View File

@ -1,31 +0,0 @@
import { emitEvent } from '../lib/emitters'
export default {
name: 'nestedcheckboxinput',
props: {
name: String,
isParentChecked: Boolean,
},
data: function() {
return {
isChecked: false,
}
},
updated: function() {
if (!this.isParentChecked) {
this.isChecked = false
}
},
methods: {
onInput: function(e) {
emitEvent('field-change', this, {
value: e.target.checked,
name: this.name,
})
},
},
}

View File

@ -13,7 +13,6 @@ import optionsinput from './components/options_input'
import multicheckboxinput from './components/multi_checkbox_input'
import textinput from './components/text_input'
import checkboxinput from './components/checkbox_input'
import nestedcheckboxinput from './components/nested_checkbox_input'
import EditOfficerForm from './components/forms/edit_officer_form'
import poc from './components/forms/poc'
import oversight from './components/forms/oversight'
@ -78,7 +77,6 @@ const app = new Vue({
SidenavToggler,
BaseForm,
DeleteConfirmation,
nestedcheckboxinput,
NewEnvironment,
EnvironmentRole,
SemiCollapsibleText,

View File

@ -25,9 +25,6 @@
</legend>
</fieldset>
</div>
{% if caller %}
{{ caller() }}
{% endif %}
</div>
</checkboxinput>
{%- endmacro %}