1414 <div class =" flex items-center section-header-actions" >
1515 <div class =" rounded-lg border borer-gray-300 dark:border-gray-700 shadow-sm" >
1616 <div class =" rounded-lg flex items-center justify-between px-2 py-1 text-sm bg-white dark:bg-gray-900" >
17- <a href =" javascript:;" class =" mx-4 no-underline text-gray-400 {{ if this.noAttemptStatus ' font-semibold text-blue-400' }} " {{ on " click" this.changeAttemptStatus }} >
17+ <a href =" javascript:;" class =" mx-4 no-underline text-gray-400 {{ unless this.attemptStatus ' font-semibold text-blue-400' }} " {{ on " click" this.changeAttemptStatus }} >
1818 {{ t " developers.common.all" }}
1919 </a >
2020 <a
3636 </div >
3737 </div >
3838 <div class =" content-panel-body table-wrapper table-fluid" >
39- <Table @rows ={{ this.webhookRequestLogs }} @columns ={{ this.columns }} @canExpand ={{ true }} as |Table|>
40- <Table .head />
41- <Table .body as |body|>
42- <body .expanded-row as |row|>
43- <table class =" border-none table-fixed sub-table dark:text-gray-100 table-spaced-y-2 table-cells-valign-top" >
44- <tbody >
45- <tr >
46- <td class =" w-64" >
47- {{ t " developers.component.webhook.attempts.http-code" }}
48- </td >
49- <td >
50- {{ row.status_code }}
51- ({{ row.reason_phrase }} )
52- </td >
53- </tr >
54- <tr >
55- <td class =" w-64" >
56- {{ t " developers.component.webhook.attempts.response-time" }}
57- </td >
58- <td >
59- {{ format-milliseconds row.duration }}
60- </td >
61- </tr >
62- <tr >
63- <td >
64- {{ t " developers.component.webhook.attempts.request-endpoint" }}
65- </td >
66- <td >
67- {{ #if row.api_event.data }}
68- <CodeBlock @code ={{ or (json-stringify row.api_event.data ) " " }} @language =" json" class =" line-numbers" />
69- {{ else }}
70- <div class =" flex items-center justify-center h-24" >
71- <span class =" text-sm text-gray-600" >
72- {{ t " developers.component.webhook.attempts.no-request-body" }}
73- </span >
74- </div >
75- {{ /if }}
76- </td >
77- </tr >
78- <tr >
79- <td >
80- {{ t " developers.component.webhook.attempts.response" }}
81- </td >
82- <td >
83- {{ #if row.response }}
84- <CodeBlock @code ={{ or (json-stringify row.response ) " " }} @language =" json" class =" line-numbers" />
85- {{ else }}
86- <div class =" flex items-center justify-center h-24" >
87- <span class =" text-sm text-gray-600" >
88- {{ t " developers.component.webhook.attempts.no-response-body" }}
89- </span >
90- </div >
91- {{ /if }}
92- </td >
93- </tr >
94- </tbody >
95- </table >
96- </body .expanded-row>
97- </Table .body>
98- </Table >
39+ {{ #if this.getWebhookRequestLogs.isRunning }}
40+ <div class =" p-4 flex" >
41+ <Spinner />
42+ </div >
43+ {{ else }}
44+ <Table @rows ={{ this.webhookRequestLogs }} @columns ={{ this.columns }} @canExpand ={{ true }} as |Table|>
45+ <Table .head />
46+ <Table .body as |body|>
47+ <body .expanded-row as |row|>
48+ <table class =" border-none table-fixed sub-table dark:text-gray-100 table-spaced-y-2 table-cells-valign-top" >
49+ <tbody >
50+ <tr >
51+ <td class =" w-64" >
52+ {{ t " developers.component.webhook.attempts.http-code" }}
53+ </td >
54+ <td >
55+ {{ row.status_code }}
56+ ({{ row.reason_phrase }} )
57+ </td >
58+ </tr >
59+ <tr >
60+ <td class =" w-64" >
61+ {{ t " developers.component.webhook.attempts.response-time" }}
62+ </td >
63+ <td >
64+ {{ format-milliseconds row.duration }}
65+ </td >
66+ </tr >
67+ <tr >
68+ <td >
69+ {{ t " developers.component.webhook.attempts.request-endpoint" }}
70+ </td >
71+ <td >
72+ {{ #if row.api_event.data }}
73+ <CodeBlock @code ={{ or (json-stringify row.api_event.data ) " " }} @language =" json" class =" line-numbers" />
74+ {{ else }}
75+ <div class =" flex items-center justify-center h-24" >
76+ <span class =" text-sm text-gray-600" >
77+ {{ t " developers.component.webhook.attempts.no-request-body" }}
78+ </span >
79+ </div >
80+ {{ /if }}
81+ </td >
82+ </tr >
83+ <tr >
84+ <td >
85+ {{ t " developers.component.webhook.attempts.response" }}
86+ </td >
87+ <td >
88+ {{ #if row.response }}
89+ <CodeBlock @code ={{ or (json-stringify row.response ) " " }} @language =" json" class =" line-numbers" />
90+ {{ else }}
91+ <div class =" flex items-center justify-center h-24" >
92+ <span class =" text-sm text-gray-600" >
93+ {{ t " developers.component.webhook.attempts.no-response-body" }}
94+ </span >
95+ </div >
96+ {{ /if }}
97+ </td >
98+ </tr >
99+ </tbody >
100+ </table >
101+ </body .expanded-row>
102+ </Table .body>
103+ </Table >
104+ {{ /if }}
99105 </div >
100106</div >
0 commit comments