Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
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
?
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur socio-fiscal
leximpact-socio-fiscal-ui
Commits
f0105b31
Commit
f0105b31
authored
6 months ago
by
Emmanuel Raviart
Browse files
Options
Downloads
Patches
Plain Diff
Corrige le partage de simulation qui ne marchait plus pour le budget
parent
f05245e1
No related branches found
No related tags found
No related merge requests found
Pipeline
#18616
passed
6 months ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/components/BudgetSimulationSharingModal.svelte
+4
-12
4 additions, 12 deletions
src/lib/components/BudgetSimulationSharingModal.svelte
with
4 additions
and
12 deletions
src/lib/components/BudgetSimulationSharingModal.svelte
+
4
−
12
View file @
f0105b31
<script
lang=
"ts"
>
import
{
Dialog
}
from
"
bits-ui
"
import
{
run
}
from
"
svelte/legacy
"
import
{
copyToClipboard
}
from
"
$lib/clipboard
"
import
DialogContent
from
"
$lib/components/DialogContent.svelte
"
...
...
@@ -21,10 +20,7 @@
let
hasClickedCopy
=
$state
(
false
)
let
isSimulationShared
run
(()
=>
{
isSimulationShared
=
shared
.
budgetSimulation
?.
isPublic
})
let
isSimulationShared
=
$derived
(
shared
.
budgetSimulation
?.
isPublic
)
let
url
=
$derived
(
new
URL
(
...
...
@@ -98,10 +94,6 @@
}
shared
.
budgetSimulation
.
isPublic
=
true
}
function
onClose
()
{
isOpen
=
false
}
</script>
<Dialog.Root
bind:open=
{
isOpen
}
>
...
...
@@ -128,11 +120,11 @@
class:cursor-pointer=
{
!
isSimulationShared
}
>
<input
type=
"checkbox"
checked=
{
isSimulationShared
}
class=
"peer sr-only"
bind:checked=
{
isSimulationShared
}
onchange=
{
onChange
}
disabled=
{
isSimulationShared
}
onchange=
{
onChange
}
type=
"checkbox"
/>
<div
class=
"peer relative h-6 w-11 rounded-full border border-le-bleu bg-le-bleu-light after:absolute after:-top-[1px] after:right-[1.2rem] after:h-6 after:w-6 after:rounded-full after:border after:border-le-bleu after:bg-white after:transition-all after:content-[''] peer-checked:border-gray-200 peer-checked:bg-gray-200 peer-checked:after:translate-x-5 peer-checked:after:border-gray-200 peer-focus:outline-none"
...
...
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