dynamize project
This commit is contained in:
parent
4d1811830c
commit
801db754d2
3 changed files with 23 additions and 2 deletions
|
|
@ -13,7 +13,9 @@
|
|||
<img :src="project.logo" alt="Logo" class="project-logo | rounded-sm" />
|
||||
<ol class="project-steps" data-steps="1">
|
||||
<li class="project-step" data-status="in-progress">
|
||||
<span class="pill" data-icon="search">Votre Brief</span>
|
||||
<span class="pill" data-icon="search">{{
|
||||
stepsLabels[project.currentStep]
|
||||
}}</span>
|
||||
</li>
|
||||
</ol>
|
||||
</article>
|
||||
|
|
@ -23,13 +25,17 @@
|
|||
<script setup>
|
||||
import dayjs from "dayjs";
|
||||
import "dayjs/locale/fr";
|
||||
const { project } = defineProps({ project: Array });
|
||||
import { useProjectStore } from "../../stores/project";
|
||||
|
||||
dayjs.locale("fr");
|
||||
|
||||
const { project } = defineProps({ project: Array });
|
||||
|
||||
const frenchFormattedModified = dayjs(project.modified).format(
|
||||
"dddd D MMMM YYYY"
|
||||
);
|
||||
|
||||
const { stepsLabels } = useProjectStore();
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue