2024-06-03 15:18:14 +08:00
|
|
|
import Component from "@glimmer/component";
|
2024-06-06 21:07:08 +08:00
|
|
|
import i18n from "discourse-common/helpers/i18n";
|
|
|
|
import AdminConfigAreaCard from "admin/components/admin-config-area-card";
|
|
|
|
import AdminConfigAreasAboutContactInformation from "admin/components/admin-config-area-cards/about/contact-information";
|
|
|
|
import AdminConfigAreasAboutGeneralSettings from "admin/components/admin-config-area-cards/about/general-settings";
|
|
|
|
import AdminConfigAreasAboutYourOrganization from "admin/components/admin-config-area-cards/about/your-organization";
|
2024-06-03 15:18:14 +08:00
|
|
|
|
|
|
|
export default class AdminConfigAreasAbout extends Component {
|
2024-06-06 21:07:08 +08:00
|
|
|
saveCallback() {
|
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
console.log("save callback");
|
|
|
|
}
|
2024-06-03 15:18:14 +08:00
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="admin-config-area">
|
2024-06-06 21:07:08 +08:00
|
|
|
<h2>{{i18n "admin.config_areas.about.header"}}</h2>
|
2024-06-03 15:18:14 +08:00
|
|
|
<div class="admin-config-area__primary-content">
|
2024-06-06 21:07:08 +08:00
|
|
|
<AdminConfigAreaCard
|
|
|
|
@heading="admin.config_areas.about.general_settings"
|
|
|
|
@primaryActionLabel="admin.config_areas.about.update"
|
|
|
|
>
|
|
|
|
<AdminConfigAreasAboutGeneralSettings
|
|
|
|
@saveCallback={{this.saveCallback}}
|
|
|
|
/>
|
|
|
|
</AdminConfigAreaCard>
|
|
|
|
<AdminConfigAreaCard
|
|
|
|
@heading="admin.config_areas.about.contact_information"
|
|
|
|
@primaryActionLabel="admin.config_areas.about.update"
|
|
|
|
>
|
|
|
|
<AdminConfigAreasAboutContactInformation
|
|
|
|
@saveCallback={{this.saveCallback}}
|
|
|
|
/>
|
|
|
|
</AdminConfigAreaCard>
|
|
|
|
<AdminConfigAreaCard
|
|
|
|
@heading="admin.config_areas.about.your_organization"
|
|
|
|
@primaryActionLabel="admin.config_areas.about.update"
|
|
|
|
>
|
|
|
|
<AdminConfigAreasAboutYourOrganization
|
|
|
|
@saveCallback={{this.saveCallback}}
|
|
|
|
/>
|
|
|
|
</AdminConfigAreaCard>
|
2024-06-03 15:18:14 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
}
|