Skip to content

Commit

Permalink
Config param time & datetime: Fix seconds support (#2863)
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <dev@florianhotze.com>
  • Loading branch information
florian-h05 authored Nov 9, 2024
1 parent 9e1a25d commit 3d0ac0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default {
props: ['configDescription', 'value'],
computed: {
step () {
if (this.configDescription.step !== undefined) return this.configDescription.step
if (this.configDescription.stepsize !== undefined) return this.configDescription.stepsize
return 60
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default {
{
values: (() => {
let arr = []
for (let i = 0; i <= 59; i = i + this.configDescription.step % 60) { arr.push(i < 10 ? `0${i}` : i) }
for (let i = 0; i <= 59; i = i + this.configDescription.stepsize % 60) { arr.push(i < 10 ? `0${i}` : i) }
return arr
})()
})
Expand Down Expand Up @@ -108,7 +108,7 @@ export default {
},
computed: {
hasSeconds () {
return this.configDescription.step !== undefined && this.configDescription.step % 60 !== 0
return this.configDescription.stepsize !== undefined && this.configDescription.stepsize % 60 !== 0
}
},
methods: {
Expand Down

0 comments on commit 3d0ac0b

Please sign in to comment.