Remove unused nestedcheckbox vue component
This commit is contained in:
parent
d33332034a
commit
ca39d7107d
@ -1,13 +1,8 @@
|
|||||||
import { emitEvent } from '../lib/emitters'
|
import { emitEvent } from '../lib/emitters'
|
||||||
import nestedcheckboxinput from './nested_checkbox_input'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'checkboxinput',
|
name: 'checkboxinput',
|
||||||
|
|
||||||
components: {
|
|
||||||
nestedcheckboxinput,
|
|
||||||
},
|
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
name: String,
|
name: String,
|
||||||
initialChecked: Boolean,
|
initialChecked: Boolean,
|
||||||
|
@ -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,
|
|
||||||
})
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
@ -13,7 +13,6 @@ import optionsinput from './components/options_input'
|
|||||||
import multicheckboxinput from './components/multi_checkbox_input'
|
import multicheckboxinput from './components/multi_checkbox_input'
|
||||||
import textinput from './components/text_input'
|
import textinput from './components/text_input'
|
||||||
import checkboxinput from './components/checkbox_input'
|
import checkboxinput from './components/checkbox_input'
|
||||||
import nestedcheckboxinput from './components/nested_checkbox_input'
|
|
||||||
import EditOfficerForm from './components/forms/edit_officer_form'
|
import EditOfficerForm from './components/forms/edit_officer_form'
|
||||||
import poc from './components/forms/poc'
|
import poc from './components/forms/poc'
|
||||||
import oversight from './components/forms/oversight'
|
import oversight from './components/forms/oversight'
|
||||||
@ -78,7 +77,6 @@ const app = new Vue({
|
|||||||
SidenavToggler,
|
SidenavToggler,
|
||||||
BaseForm,
|
BaseForm,
|
||||||
DeleteConfirmation,
|
DeleteConfirmation,
|
||||||
nestedcheckboxinput,
|
|
||||||
NewEnvironment,
|
NewEnvironment,
|
||||||
EnvironmentRole,
|
EnvironmentRole,
|
||||||
SemiCollapsibleText,
|
SemiCollapsibleText,
|
||||||
|
@ -25,9 +25,6 @@
|
|||||||
</legend>
|
</legend>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
{% if caller %}
|
|
||||||
{{ caller() }}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</checkboxinput>
|
</checkboxinput>
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user