mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 14:03:57 +08:00
2ef9d6ac47
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.
25 lines
751 B
Handlebars
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> |