@@ -7,13 +7,15 @@ export const useIdentityStateStore = defineStore('identityStates', {
77 [ IdentityState . TO_VALIDATE ] : 0 ,
88 [ IdentityState . ON_ERROR ] : 0 ,
99 [ IdentityState . TO_SYNC ] : 0 ,
10+ [ IdentityState . PROCESSING ] : 0 ,
1011 [ IdentityState . SYNCED ] : 0 ,
1112 } ) ,
1213 getters : {
1314 getToCompleteCount : state => state [ IdentityState . TO_COMPLETE ] ,
1415 getToValidateCount : state => state [ IdentityState . TO_VALIDATE ] ,
1516 getOnErrorCount : state => state [ IdentityState . ON_ERROR ] ,
1617 getToSyncCount : state => state [ IdentityState . TO_SYNC ] ,
18+ getProcessingCount : state => state [ IdentityState . PROCESSING ] ,
1719 getSyncedCount : state => state [ IdentityState . SYNCED ] ,
1820 } ,
1921 actions : {
@@ -24,6 +26,7 @@ export const useIdentityStateStore = defineStore('identityStates', {
2426 this . fetchToValidateCount ( ) ,
2527 this . fetchOnErrorCount ( ) ,
2628 this . fetchToSyncCount ( ) ,
29+ this . fetchProcessingCount ( ) ,
2730 this . fetchSyncedCount ( ) ,
2831 ] ) ;
2932 } catch ( error ) {
@@ -62,6 +65,14 @@ export const useIdentityStateStore = defineStore('identityStates', {
6265 console . error ( error ) ;
6366 }
6467 } ,
68+ async fetchProcessingCount ( ) {
69+ try {
70+ const { data } = await useHttp ( `/management/identities/count?filters[@state][]=${ IdentityState . PROCESSING } &limit=100` ) ;
71+ this [ IdentityState . PROCESSING ] = data . value . data ;
72+ } catch ( error ) {
73+ console . error ( error ) ;
74+ }
75+ } ,
6576 async fetchSyncedCount ( ) {
6677 try {
6778 const { data } = await useHttp ( `/management/identities/count?filters[@state][]=${ IdentityState . SYNCED } &limit=100` ) ;
0 commit comments