260710_1
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { CURRENT_PROJECT_ID_KEY, ROUTES, type RoutePath } from "@config/config_frontend";
|
||||
import { isBlank } from "@util/common_util_validate";
|
||||
import { navigateTo } from "../A00_Common/router";
|
||||
import { workflowSteps } from "../A00_Common/b_page_scaffold";
|
||||
import { ui_locales, currentLanguageIndex } from "@ui/ui_template_locale";
|
||||
import {
|
||||
createButton,
|
||||
@@ -382,12 +383,13 @@ function workflow(project: ProjectItem): HTMLElement {
|
||||
box.className = "b01-dashboard__workflow";
|
||||
|
||||
const stages = project.workflow_state?.stages;
|
||||
const stepLabels = workflowSteps();
|
||||
|
||||
routes.forEach((route, index) => {
|
||||
const button = document.createElement("button");
|
||||
button.type = "button";
|
||||
button.className = "b01-dashboard__step";
|
||||
button.textContent = `B${String(index + 3).padStart(2, "0")}`;
|
||||
button.textContent = stepLabels[index] ?? `B${String(index + 3).padStart(2, "0")}`;
|
||||
|
||||
let enabled = false;
|
||||
if (stages && stages.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user