mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-02 04:02:20 +00:00
Implement topupTrackerStore
(cherry picked from commit fbf2aeb54f6c82afcdb4717f49bca28d9d869ab5)
This commit is contained in:
@@ -101,12 +101,14 @@ import {
|
||||
EventType,
|
||||
useCustomerEventsService
|
||||
} from '@/services/customerEventsService'
|
||||
import { useTopupTrackerStore } from '@/stores/topupTrackerStore'
|
||||
|
||||
const events = ref<AuditLog[]>([])
|
||||
const loading = ref(true)
|
||||
const error = ref<string | null>(null)
|
||||
|
||||
const customerEventService = useCustomerEventsService()
|
||||
const topupTracker = useTopupTrackerStore()
|
||||
|
||||
const pagination = ref({
|
||||
page: 1,
|
||||
@@ -159,6 +161,8 @@ const loadEvents = async () => {
|
||||
if (response.totalPages) {
|
||||
pagination.value.totalPages = response.totalPages
|
||||
}
|
||||
|
||||
void topupTracker.reconcileWithEvents(response.events)
|
||||
} else {
|
||||
error.value = customerEventService.error.value || 'Failed to load events'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user