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

Commit8b615f4

Browse files
authored
fix: disable agent app buttons while a blocking startup script is running (#13667)
1 parent093ec3d commit8b615f4

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

‎site/src/modules/resources/AppLink/AppLink.stories.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,15 @@ export const InternalApp: Story = {
151151
agent:MockWorkspaceAgent,
152152
},
153153
};
154+
155+
exportconstBlockingStartupScriptRunning:Story={
156+
args:{
157+
workspace:MockWorkspace,
158+
app:MockWorkspaceApp,
159+
agent:{
160+
...MockWorkspaceAgent,
161+
lifecycle_state:"starting",
162+
startup_script_behavior:"blocking",
163+
},
164+
},
165+
};

‎site/src/modules/resources/AppLink/AppLink.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,19 @@ export const AppLink: FC<AppLinkProps> = ({ app, workspace, agent }) => {
9494
}
9595
if(!appsHost&&app.subdomain){
9696
canClick=false;
97-
icon=(
98-
<ErrorOutlineIcon
99-
css={{
100-
color:theme.palette.grey[300],
101-
}}
102-
/>
103-
);
97+
icon=<ErrorOutlineIconcss={{color:theme.palette.grey[300]}}/>;
10498
primaryTooltip=
10599
"Your admin has not configured subdomain application access";
106100
}
107101
if(fetchingSessionToken){
108102
canClick=false;
109103
}
104+
if(
105+
agent.lifecycle_state==="starting"&&
106+
agent.startup_script_behavior==="blocking"
107+
){
108+
canClick=false;
109+
}
110110

111111
constisPrivateApp=app.sharing_level==="owner";
112112

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp