Skip to content
Snippets Groups Projects
Commit 097b1e59 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Show red icon when decomposition is obsolete.

parent fae4430e
Branches
Tags
No related merge requests found
......@@ -305,7 +305,7 @@
{/if}
{:else}
<div>
{#if decomposition.last_review === undefined || decomposition.last_review < "2020"}
{#if decomposition.last_review === undefined || decomposition.last_review < "2020" || decomposition.obsolete}
<!-- Inspired from Material Icons name: Warning / with white symbol inside -->
<svg
aria-hidden="true"
......@@ -313,16 +313,17 @@
viewBox="0 0 24 22"
xmlns="http://www.w3.org/2000/svg"
>
<title
>Dernière relecture : {#if decomposition.last_review === undefined}<i
<title>
Dernière relecture : {#if decomposition.last_review === undefined}<i
>date indéterminée</i
>{:else}{dateFormatter.format(
new Date(decomposition.last_review),
)}{/if}</title
>
)}{/if}
{#if decomposition.obsolete} ; Obsolète !{/if}
</title>
<path
d="M0.124322 18.4377C-0.240619 19.1041 0.241623 19.918 1.00142 19.918H20.6259C21.3857 19.918 21.868 19.1041 21.503 18.4377L11.6908 0.519686C11.3113 -0.173228 10.316 -0.173229 9.93658 0.519685L0.124322 18.4377ZM11.8591 16.8375C11.8591 17.3898 11.4114 17.8375 10.8591 17.8375H10.7682C10.2159 17.8375 9.76822 17.3898 9.76822 16.8375V16.627C9.76822 16.0747 10.2159 15.627 10.7682 15.627H10.8591C11.4114 15.627 11.8591 16.0747 11.8591 16.627V16.8375ZM11.8591 12.7416C11.8591 13.2938 11.4114 13.7416 10.8591 13.7416H10.7682C10.2159 13.7416 9.76822 13.2938 9.76822 12.7416V7.3298C9.76822 6.77751 10.2159 6.3298 10.7682 6.3298H10.8591C11.4114 6.3298 11.8591 6.77751 11.8591 7.3298V12.7416Z"
fill="#FFAC33"
fill={decomposition.obsolete ? "#FF4133" : "#FFAC33"}
/>
<path
d="M10.7686 17.8378H10.8595C11.4117 17.8378 11.8595 17.3901 11.8595 16.8378V16.6273C11.8595 16.075 11.4117 15.6273 10.8595 15.6273H10.7686C10.2163 15.6273 9.76855 16.075 9.76855 16.6273V16.8378C9.76855 17.3901 10.2163 17.8378 10.7686 17.8378Z"
......
......@@ -19,6 +19,7 @@ export interface Decomposition {
last_review?: string
name: string
negate?: boolean
obsolete?: boolean
open?: boolean
parentName?: string
previousChildStack?: string[]
......@@ -79,6 +80,7 @@ export function decompositionByNameFromCore(
last_review: decompositionCore.last_review,
name,
negate,
obsolete: decompositionCore.obsolete,
trunk,
ux_name: decompositionCore.ux_name,
virtual: decompositionCore.virtual,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment