summaryrefslogtreecommitdiff
path: root/src/client/app
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2019-08-27 02:44:01 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-08-27 02:44:01 +0900
commitba93bf7478ad2b224cff0f6703cb6d51fdc9ae00 (patch)
treed9a84d241e09b51e198ed6262c12844075ff6211 /src/client/app
parentImprove post form (#5326) (diff)
downloadsharkey-ba93bf7478ad2b224cff0f6703cb6d51fdc9ae00.tar.gz
sharkey-ba93bf7478ad2b224cff0f6703cb6d51fdc9ae00.tar.bz2
sharkey-ba93bf7478ad2b224cff0f6703cb6d51fdc9ae00.zip
Prevent users from changing the disabled option (#5344)
Diffstat (limited to 'src/client/app')
-rw-r--r--src/client/app/common/views/components/ui/switch.vue1
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);
}
}