2424 q-icon( name ="mdi-circle" : color= "getStateColor(props.target.state)" : class = "`q-mr-xs`" )
2525 q-tooltip.text-body2 ( slot ="trigger" ) {{ getStateName(props.target.state) }}
2626 template( #top-left-btn-grp ="{selectedValues}" )
27- sesame-table-top-left( :selected ="selectedValues" @refresh ="refresh" @clear ="selected = [] " )
27+ sesame-table-top-left( :selected ="selectedValues" @refresh ="refresh" @clear ="clearSelected " )
2828 template( #body-cell-states ="props" )
2929 sesame-table-state-col( :identity ="props.row" )
3030 template( #right-panel-actions-content-after ="{target}" )
@@ -49,9 +49,12 @@ import type { components, operations } from '#build/types/service-api'
4949import { useErrorHandling } from ' #imports'
5050import { useIdentityStates } from ' ~/composables'
5151import { identity } from ' @vueuse/core'
52+ import { useIdentityStateStore } from " ~/stores/identityState"
5253type Identity = components [' schemas' ][' IdentitiesDto' ]
5354type Response = operations [' IdentitiesController_search' ][' responses' ][' 200' ][' content' ][' application/json' ]
5455
56+ const identityStateStore = useIdentityStateStore ()
57+
5558defineOptions ({
5659 name: ' Identities' ,
5760})
@@ -68,8 +71,9 @@ onMounted(() => {
6871 initializePagination (identities .value ?.total )
6972})
7073
71- function refreshTarget(target : Identity ) {
74+ async function refreshTarget(target : Identity ) {
7275 twopan .value .read (target )
76+ await identityStateStore .fetchToSyncCount ()
7377 refreshEvent ()
7478}
7579
@@ -101,6 +105,10 @@ const { columns, visibleColumns, columnsType } = useColumnsIdentites()
101105
102106const selected = ref ([])
103107
108+ function clearSelected() {
109+ (twopan as any ).value .clearSelected ()
110+ }
111+
104112function refreshEvent() {
105113 refresh ()
106114 selected .value = []
0 commit comments