Disabled class for switch
This commit is contained in:
parent
db874b6218
commit
fc49277e1d
|
@ -1,6 +1,6 @@
|
|||
<template src="./templates/SettingSwitch.html"></template>
|
||||
<script>
|
||||
export default {
|
||||
props: ['setting', 'onClick']
|
||||
props: ['setting', 'onClick', 'disabled']
|
||||
}
|
||||
</script>
|
|
@ -1,4 +1,4 @@
|
|||
<div class="bd-setting-switch">
|
||||
<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="onClick">
|
||||
|
|
Loading…
Reference in New Issue