mirror of
https://github.com/coder/coder.git
synced 2026-11-12 20:50:29 +08:00
11 lines
295 B
TypeScript
11 lines
295 B
TypeScript
import type { ProvisionerJob } from "api/typesGenerated";
|
|
|
|
export const getPendingStatusLabel = (
|
|
provisionerJob?: ProvisionerJob,
|
|
): string => {
|
|
if (!provisionerJob || provisionerJob.queue_size === 0) {
|
|
return "Pending";
|
|
}
|
|
return `Position in queue: ${provisionerJob.queue_position}`;
|
|
};
|