discourse/app/assets/javascripts/admin/addon/templates/whats-new.hbs
Martin Brennan 2ef9d6ac47
FEATURE: Allow admins to force refresh "What's new?" (#29911)
Sometimes changes to "What's new?" feed items are made or the feed items are
removed altogether, and the polling interval to check for new features is 1 day.

This is quite long, so this commit introduces a "Check for updates"
button for admins to click on the "What's new?" page which will bust
the cache for the feed and check again at the new features endpoint.
This is limited to 5 times per minute to avoid rapid sending of
requests.
2024-11-27 09:40:55 +10:00

25 lines
751 B
Handlebars

<AdminPageHeader
@titleLabel="admin.dashboard.new_features.title"
@descriptionLabel="admin.dashboard.new_features.subtitle"
@learnMoreUrl="https://meta.discourse.org/tags/c/announcements/67/release-notes"
@hideTabs={{true}}
>
<:breadcrumbs>
<DBreadcrumbsItem
@path="/admin/whats-new"
@label={{i18n "admin.dashboard.new_features.title"}}
/>
</:breadcrumbs>
<:actions as |actions|>
<actions.Primary
@label="admin.new_features.check_for_updates"
@action={{this.checkForUpdates}}
/>
</:actions>
</AdminPageHeader>
<div class="admin-container admin-config-page__main-area">
<div class="admin-config-area">
<DashboardNewFeatures @onCheckForFeatures={{this.bindCheckFeatures}} />
</div>
</div>