diff options
author | dartcafe <github@dartcafe.de> | 2020-10-25 21:23:55 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-10-25 21:23:55 +0300 |
commit | 6657f258487faa90067257627be7f65f8d1e573e (patch) | |
tree | 76dc4871ff9fe621c2b8341d5f3666a7363cd132 /src/js/components/SideBar/SideBarTabConfiguration.vue | |
parent | efe2de6ed21508e1afca5427f12f976a18dbb2e1 (diff) |
Another approach for converting boolean to int
Diffstat (limited to 'src/js/components/SideBar/SideBarTabConfiguration.vue')
-rw-r--r-- | src/js/components/SideBar/SideBarTabConfiguration.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/js/components/SideBar/SideBarTabConfiguration.vue b/src/js/components/SideBar/SideBarTabConfiguration.vue index 8d1d5c3a..dc70c5d6 100644 --- a/src/js/components/SideBar/SideBarTabConfiguration.vue +++ b/src/js/components/SideBar/SideBarTabConfiguration.vue @@ -223,7 +223,7 @@ export default { return (this.poll.anonymous > 0) }, set(value) { - this.writeValue({ anonymous: value }) + this.writeValue({ anonymous: +value }) }, }, @@ -232,7 +232,7 @@ export default { return (this.poll.important > 0) }, set(value) { - this.writeValue({ important: value }) + this.writeValue({ important: +value }) }, }, @@ -241,7 +241,7 @@ export default { return (this.poll.adminAccess > 0) }, set(value) { - this.writeValue({ adminAccess: value }) + this.writeValue({ adminAccess: +value }) }, }, @@ -250,7 +250,7 @@ export default { return this.poll.allowMaybe }, set(value) { - this.writeValue({ allowMaybe: value }) + this.writeValue({ allowMaybe: +value }) }, }, |