mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 17:53:10 +08:00

This commit converts the Backups page in the admin interface to follow our new admin interface guidelines. As part of this work, I've also made `AdminPageHeader` and `AdminPageSubheader` components that can be reused on any admin page for consistency, that handle the title and action buttons and also breadcrumbs. Also renamed `AdminPluginFilteredSiteSettings` to `AdminFilteredSiteSettings` since it can be used generally to show a subset of filtered site settings, not only settings for a plugin. Not sure if it's ideal to have to define a new route for this for every config area, but not sure how else to do it right now.
24 lines
660 B
Plaintext
24 lines
660 B
Plaintext
import { hash } from "@ember/helper";
|
|
import i18n from "discourse-common/helpers/i18n";
|
|
import {
|
|
DangerButton,
|
|
DefaultButton,
|
|
PrimaryButton,
|
|
} from "admin/components/admin-page-action-button";
|
|
|
|
const AdminPageSubheader = <template>
|
|
<div class="admin-page-subheader">
|
|
<div class="admin-page-subheader__title-row">
|
|
<h3 class="admin-page-subheader__title">{{i18n @titleLabel}}</h3>
|
|
<div class="admin-page-subheader__actions">
|
|
{{yield
|
|
(hash Primary=PrimaryButton Default=DefaultButton Danger=DangerButton)
|
|
to="actions"
|
|
}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>;
|
|
|
|
export default AdminPageSubheader;
|