Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit735586d

Browse files
committed
handle unhealthy
1 parent529449b commit735586d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

‎site/src/pages/TaskPage/TaskAppIframe.tsx‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ export const TaskAppIFrame: FC<TaskAppIFrameProps> = ({
8484
</div>
8585
)}
8686

87-
{app.health==="healthy"||
88-
app.health==="disabled"||
89-
app.health==="unhealthy" ?(
87+
{app.health==="healthy"||app.health==="disabled" ?(
9088
<iframe
9189
ref={frameRef}
9290
src={link.href}
@@ -95,6 +93,15 @@ export const TaskAppIFrame: FC<TaskAppIFrameProps> = ({
9593
className={"w-full h-full border-0"}
9694
allow="clipboard-read; clipboard-write"
9795
/>
96+
) :app.health==="unhealthy" ?(
97+
<divclassName="w-full h-full flex flex-col items-center justify-center">
98+
<h3className="m-0 font-medium text-content-primary text-base">
99+
App unhealthy
100+
</h3>
101+
<spanclassName="text-content-secondary text-sm">
102+
Check the logs for details
103+
</span>
104+
</div>
98105
) :app.health==="initializing" ?(
99106
<divclassName="w-full h-full flex items-center justify-center">
100107
<Spinnerloading/>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp