kanban > steps : add dtl indicator
This commit is contained in:
parent
7038185e7f
commit
30fbc0e4e8
9 changed files with 222 additions and 156 deletions
18
src/stores/designToLight.js
Normal file
18
src/stores/designToLight.js
Normal 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 };
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue