Set up Always On OTPs on the main view

This commit is contained in:
Bubka
2023-10-24 13:27:50 +02:00
parent db295f97e9
commit 4dbbae24dc
5 changed files with 102 additions and 143 deletions

View File

@ -8,6 +8,10 @@
type: Number,
default: null
},
period: { // Used only to identify the dots component in Accounts.vue
type: Number,
default: null
},
})
const activeDot = ref(0)
@ -37,7 +41,8 @@
defineExpose({
turnOn,
turnOff
turnOff,
props
})
</script>

View File

@ -58,9 +58,9 @@
/**
* Starts looping
*/
const startLoop = () => {
const startLoop = (generated_at = null) => {
clearLooper()
generatedAt.value = props.generated_at
generatedAt.value = generated_at != null ? generated_at : props.generated_at
emit('loop-started', initialStepIndex.value)
@ -110,7 +110,8 @@
defineExpose({
startLoop,
clearLooper
clearLooper,
props
})
</script>