Disabled class for switch

This commit is contained in:
Jiiks 2018-01-22 22:01:58 +02:00
parent db874b6218
commit fc49277e1d
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<template src="./templates/SettingSwitch.html"></template>
<script>
export default {
props: ['setting', 'onClick']
props: ['setting', 'onClick', 'disabled']
}
</script>

View File

@ -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">