mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 19:45:21 +08:00
ffec8163b0
This commit introduces the initial UI for the admin config area for the /about page. The UI isn't wired and doesn't do anything yet, but we're going to iterate on it in future commits. Internal topic: t/128544.
46 lines
1.8 KiB
Plaintext
46 lines
1.8 KiB
Plaintext
import Component from "@glimmer/component";
|
|
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";
|
|
|
|
export default class AdminConfigAreasAbout extends Component {
|
|
saveCallback() {
|
|
// eslint-disable-next-line no-console
|
|
console.log("save callback");
|
|
}
|
|
|
|
<template>
|
|
<div class="admin-config-area">
|
|
<h2>{{i18n "admin.config_areas.about.header"}}</h2>
|
|
<div class="admin-config-area__primary-content">
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
}
|