File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ export const MissingExternalAuth: Story = {
245
245
} ) ;
246
246
247
247
await step ( "Renders external authentication" , async ( ) => {
248
- await canvas . findByRole ( "button" , { name : / l o g i n w i t h g i t h u b / i } ) ;
248
+ await canvas . findByRole ( "button" , { name : / c o n n e c t t o g i t h u b / i } ) ;
249
249
} ) ;
250
250
} ,
251
251
} ;
Original file line number Diff line number Diff line change @@ -213,8 +213,12 @@ const TaskForm: FC<TaskFormProps> = ({ templates }) => {
213
213
const selectedTemplate = templates . find (
214
214
( t ) => t . id === selectedTemplateId ,
215
215
) as Template ;
216
- const { externalAuth, externalAuthError, isPollingExternalAuth } =
217
- useExternalAuth ( selectedTemplate . active_version_id ) ;
216
+ const {
217
+ externalAuth,
218
+ externalAuthError,
219
+ isPollingExternalAuth,
220
+ isLoadingExternalAuth,
221
+ } = useExternalAuth ( selectedTemplate . active_version_id ) ;
218
222
const missedExternalAuth = externalAuth ?. filter (
219
223
( auth ) => ! auth . optional && ! auth . authenticated ,
220
224
) ;
@@ -309,7 +313,11 @@ const TaskForm: FC<TaskFormProps> = ({ templates }) => {
309
313
310
314
< Button size = "sm" type = "submit" disabled = { isMissingExternalAuth } >
311
315
< Spinner
312
- loading = { createTaskMutation . isPending || isPollingExternalAuth }
316
+ loading = {
317
+ isLoadingExternalAuth ||
318
+ isPollingExternalAuth ||
319
+ createTaskMutation . isPending
320
+ }
313
321
>
314
322
< SendIcon />
315
323
</ Spinner >
@@ -374,7 +382,7 @@ const ExternalAuthButtons: FC<ExternalAuthButtonProps> = ({
374
382
</ Button >
375
383
</ TooltipTrigger >
376
384
< TooltipContent >
377
- Retry connect to { auth . display_name }
385
+ Retry connecting to { auth . display_name }
378
386
</ TooltipContent >
379
387
</ Tooltip >
380
388
</ TooltipProvider >
You can’t perform that action at this time.
0 commit comments