Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Churros
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
Alice Dissoubray
Churros
Commits
41912259
Commit
41912259
authored
Oct 10, 2023
by
Ewen Le Bihan
Browse files
Options
Downloads
Patches
Plain Diff
fix(planning): don't show shotguns in the past
parent
489feeef
Branches
Branches containing commit
Tags
v0.55.3
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/app/src/routes/events/planning/+page.svelte
+6
-2
6 additions, 2 deletions
packages/app/src/routes/events/planning/+page.svelte
with
6 additions
and
2 deletions
packages/app/src/routes/events/planning/+page.svelte
+
6
−
2
View file @
41912259
...
...
@@ -3,7 +3,7 @@
import
IconChevronDown
from
'
~icons/mdi/chevron-down
'
;
import
type
{
PageData
}
from
'
./$types
'
;
import
CalendarDay
from
'
$lib/components/CalendarDay.svelte
'
;
import
{
compareAsc
,
format
,
parseISO
}
from
'
date-fns
'
;
import
{
compareAsc
,
format
,
isFuture
,
isToday
,
parse
,
parseISO
}
from
'
date-fns
'
;
import
{
closestMonday
}
from
'
$lib/dates
'
;
import
NavigationTabs
from
'
$lib/components/NavigationTabs.svelte
'
;
import
CardEvent
from
'
$lib/components/CardEvent.svelte
'
;
...
...
@@ -25,7 +25,11 @@
);
$
:
shownDays
=
[...
new
Set
([...
Object
.
keys
(
groupedByDate
),
...
Object
.
keys
(
groupedByShotgun
)])]
.
filter
(
Boolean
)
.
filter
((
dateString
)
=>
{
if
(
!
dateString
)
return
false
;
const
date
=
parse
(
dateString
,
'
yyyy-MM-dd
'
,
new
Date
());
return
isFuture
(
date
)
||
isToday
(
date
);
})
.
sort
();
let
openedShotgunsList
:
string
|
undefined
=
undefined
;
...
...
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