Pass setting back to parent on click
This commit is contained in:
parent
e11787c585
commit
4ad2cc52dd
|
@ -14,8 +14,7 @@
|
|||
const components = { SettingsWrapper, SettingSwitch };
|
||||
|
||||
/*Methods*/
|
||||
function settingOnClick() {
|
||||
console.log("setting on click");
|
||||
function settingOnClick(setting) {
|
||||
}
|
||||
|
||||
const methods = { settingOnClick };
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<div class="bd-setting-switch" :class="{'bd-disabled': disabled}">
|
||||
<div class="bd-title">
|
||||
<h3>{{setting.title || setting.text}}</h3>
|
||||
<label class="bd-switch-wrapper" @click="!disabled ? onClick() : null">
|
||||
<label class="bd-switch-wrapper" @click="!disabled ? onClick(setting) : null">
|
||||
<input type="checkbox" class="bd-switch-checkbox"/>
|
||||
<div class="bd-switch" :class="{'bd-checked': setting.checked}"/>
|
||||
</label>
|
||||
|
|
Loading…
Reference in New Issue