kanban > steps : add dtl indicator

This commit is contained in:
isUnknown 2025-01-23 17:39:40 +01:00
parent 7038185e7f
commit 30fbc0e4e8
9 changed files with 222 additions and 156 deletions

View file

@ -0,0 +1,18 @@
import { defineStore, storeToRefs } from "pinia";
import { usePageStore } from "./page";
export const useDesignToLightStore = defineStore("design-to-light", () => {
const { page } = storeToRefs(usePageStore());
function isDesignToLightStep(step) {
const isDTLEnabled = page.value.designToLight;
return (
isDTLEnabled &&
page.value.designToLight.some((proposal) =>
proposal.path.includes(step.uri)
)
);
}
return { isDesignToLightStep };
});