Skip to content

Commit 9f750c2

Browse files
committed
scheduled prop
1 parent 262c19b commit 9f750c2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/ProductChangelog.astro

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const props = z
2222
.and(
2323
z.object({
2424
hideEntry: z.string().optional(),
25-
scheduledOnly: z.boolean().default(false),
25+
scheduled: z.boolean().default(false),
2626
}),
2727
);
2828
@@ -39,7 +39,7 @@ if ("product" in input) {
3939
!e.data.hidden &&
4040
e.data.products.some(({ id }) => id === input.product.id) &&
4141
input.hideEntry !== e.id &&
42-
(!input.scheduledOnly || e.data.scheduled)
42+
input.scheduled === e.data.scheduled
4343
);
4444
};
4545
} else {
@@ -59,6 +59,8 @@ const changelogs = await getChangelogs({ filter });
5959

6060
<RSSButton href={rss} />
6161

62+
{changelogs.length === 0 && <p>There are no scheduled entries at this time.</p>}
63+
6264
{
6365
changelogs.map(async (entry) => {
6466
const { Content } = await render(entry);

src/content/docs/waf/change-log/scheduled-changes.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ tableOfContents: false
77

88
import { ProductChangelog } from "~/components";
99

10-
<ProductChangelog product="waf" scheduledOnly />
10+
<ProductChangelog product="waf" scheduled />
1111

1212
For other WAF updates, refer to the [changelog](/changelog/?product=waf).

0 commit comments

Comments
 (0)