mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 13:55:01 +02:00
Set up Always On OTPs on the main view
This commit is contained in:
@ -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>
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user