Skip to content

Commit c274414

Browse files
committed
Address PR feedback
1 parent e530f7d commit c274414

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

site/src/components/Workspace/Workspace.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,10 @@ export const Workspace: FC<React.PropsWithChildren<WorkspaceProps>> = ({
218218
<AlertTitle>Workspace build is pending</AlertTitle>
219219
<AlertDetail>
220220
<div className={styles.alertPendingInQueue}>
221-
This build job is waiting for a provisioner to become
222-
available. If you have been waiting for an extended period,
223-
contact your administrator for assistance.
221+
This workspace build job is waiting for a provisioner to
222+
become available. If you have been waiting for an extended
223+
period of time, please contact your administrator for
224+
assistance.
224225
</div>
225226
<div>
226227
Position in queue:{" "}

site/src/components/WorkspaceStatusBadge/WorkspaceStatusBadge.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ export const WorkspaceStatusText: FC<
4343
workspace.latest_build.status,
4444
)
4545

46-
workspace.latest_build.job.queue_size
47-
4846
return (
4947
<ChooseOne>
5048
{/* <ImpendingDeletionText/> determines its own visibility */}

site/src/utils/workspace.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ const getPendingWorkspaceStatusText = (
272272
): string => {
273273
const { t } = i18next
274274

275-
if (provisionerJob === undefined || provisionerJob.queue_size === 0) {
275+
if (!provisionerJob || provisionerJob.queue_size === 0) {
276276
return t("workspaceStatus.pending", { ns: "common" })
277277
}
278278
return "Position in queue: " + provisionerJob.queue_position

0 commit comments

Comments
 (0)