File tree Expand file tree Collapse file tree
packages/ui/src/components/ConfigureSSO/steps Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,13 +56,15 @@ export const TestConfigurationStep = (): JSX.Element => {
5656 data : testRuns ,
5757 totalCount,
5858 isLoading : areTestRunsLoading ,
59+ isFetching : areTestRunsFetching ,
5960 isPolling,
6061 revalidate : revalidateTestRuns ,
6162 } = __internal_useEnterpriseConnectionTestRuns ( {
6263 enterpriseConnectionId : enterpriseConnection ?. id ?? null ,
6364 params : { initialPage : currentPage , pageSize : TEST_RUNS_PAGE_SIZE } ,
6465 } ) ;
6566
67+ const isRefreshingTestRuns = areTestRunsFetching && ! areTestRunsLoading ;
6668 const pageCount = totalCount ? Math . ceil ( totalCount / TEST_RUNS_PAGE_SIZE ) : 0 ;
6769
6870 const handleTestRunCreated = ( ) => {
@@ -112,14 +114,21 @@ export const TestConfigurationStep = (): JSX.Element => {
112114 colorScheme = 'secondary'
113115 size = 'xs'
114116 onClick = { ( ) => void revalidateTestRuns ( ) }
115- isDisabled = { areTestRunsLoading }
117+ isDisabled = { isRefreshingTestRuns }
116118 sx = { t => ( { gap : t . space . $1x5 } ) }
117119 >
118- < Icon
119- icon = { RotateLeftRight }
120- size = 'sm'
121- colorScheme = 'neutral'
122- />
120+ { isRefreshingTestRuns ? (
121+ < Spinner
122+ elementDescriptor = { descriptors . spinner }
123+ size = 'xs'
124+ />
125+ ) : (
126+ < Icon
127+ icon = { RotateLeftRight }
128+ size = 'sm'
129+ colorScheme = 'neutral'
130+ />
131+ ) }
123132 < Text
124133 as = 'span'
125134 localizationKey = { localizationKeys (
You can’t perform that action at this time.
0 commit comments