Skip to main content
Homepage
Explore
Search or go to…
/
Register
Sign in
Explore
Primary navigation
Project
L
leximpact-socio-fiscal-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur socio-fiscal
leximpact-socio-fiscal-ui
Commits
b33ea443
Commit
b33ea443
authored
Sep 6, 2021
by
Emmanuel Raviart
Browse files
Options
Downloads
Patches
Plain Diff
In waterfall, add link to variable even when it has no direct parameters.
parent
879b5a7f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/components/WaterfallView.svelte
+4
-6
4 additions, 6 deletions
src/lib/components/WaterfallView.svelte
with
4 additions
and
6 deletions
src/lib/components/WaterfallView.svelte
+
4
−
6
View file @
b33ea443
...
...
@@ -13,8 +13,6 @@
import
type
{
EditionMode
}
from
"
$lib/editions
"
import
{
entityByKey
}
from
"
$lib/entities
"
import
type
{
Situation
}
from
"
$lib/situations
"
import
type
{
SelfTargetAProps
}
from
"
$lib/urls
"
import
{
getVariableParametersName
}
from
"
$lib/variables
"
export
let
date
:
string
export
let
decompositionByName
:
DecompositionByName
...
...
@@ -171,8 +169,8 @@
sveltekit:noscroll
>
{
decomposition
.
ux_name
??
decomposition
.
label
}
</a
>
{
:else
if
variable
===
undefined
||
getVariableParametersName
(
variable
,
date
)
===
undefined
}
<!-- Trunk decomposition
variable
without
p
ar
ameters
, in parameters mode => no link -->
{
:else
if
variable
===
undefined
}
<!-- Trunk decomposition without
v
ar
iable
, in parameters mode => no link -->
<span>
{
decomposition
.
ux_name
??
decomposition
.
label
}
</span
>
{
:
else
}
...
...
@@ -265,8 +263,8 @@
sveltekit:noscroll
>
{
decomposition
.
ux_name
??
decomposition
.
label
}
</a
>
{
:else
if
variable
===
undefined
||
getVariableParametersName
(
variable
,
date
)
===
undefined
}
<!-- Leaf decomposition
variable
without
p
ar
ameters
in parameters mode => no link -->
{
:else
if
variable
===
undefined
}
<!-- Leaf decomposition without
v
ar
iable,
in parameters mode => no link -->
<span
class=
"hover:bg-white font-serif overflow-ellipsis overflow-x-hidden hover:overflow-x-visible text-base hover:z-20"
>
{
decomposition
.
ux_name
??
decomposition
.
label
}
</span
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment