diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2019-08-27 02:44:01 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-08-27 02:44:01 +0900 |
| commit | ba93bf7478ad2b224cff0f6703cb6d51fdc9ae00 (patch) | |
| tree | d9a84d241e09b51e198ed6262c12844075ff6211 /src | |
| parent | Improve post form (#5326) (diff) | |
| download | sharkey-ba93bf7478ad2b224cff0f6703cb6d51fdc9ae00.tar.gz sharkey-ba93bf7478ad2b224cff0f6703cb6d51fdc9ae00.tar.bz2 sharkey-ba93bf7478ad2b224cff0f6703cb6d51fdc9ae00.zip | |
Prevent users from changing the disabled option (#5344)
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/common/views/components/ui/switch.vue | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/app/common/views/components/ui/switch.vue b/src/client/app/common/views/components/ui/switch.vue index a653e9df6d..8e3997ae78 100644 --- a/src/client/app/common/views/components/ui/switch.vue +++ b/src/client/app/common/views/components/ui/switch.vue @@ -49,6 +49,7 @@ export default Vue.extend({ }, methods: { toggle() { + if (this.disabled) return; this.$emit('change', !this.checked); } } |