feat(time): add span-based attendance tracking under 2.0
This commit is contained in:
@@ -79,6 +79,11 @@ async function loadUsers() {
|
||||
|
||||
async function load() {
|
||||
if (!selectedUser.value) return
|
||||
const context = await useNuxtApp().$api('/api/v2/time/context')
|
||||
if (context.profiles.some(p => p.user_id === selectedUser.value && p.activated_at)) {
|
||||
await router.replace({ path: '/v2/time', query: { user_id: selectedUser.value } })
|
||||
return
|
||||
}
|
||||
entries.value = await list({ user_id: selectedUser.value })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user