mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-27 18:59:19 +08:00
This commit continues work laid out by ffec8163b0 for the admin config page for the /about page. The last commit set up the user interface, and this one sets up all the wiring needed to make the input fields and save buttons actually work.
Internal topic: t/128544.
16 lines
489 B
Text
Vendored
16 lines
489 B
Text
Vendored
import Component from "@glimmer/component";
|
|
import { tracked } from "@glimmer/tracking";
|
|
import i18n from "discourse-common/helpers/i18n";
|
|
|
|
export default class AdminConfigAreaCard extends Component {
|
|
@tracked collapsed = false;
|
|
|
|
<template>
|
|
<section class="admin-config-area-card" ...attributes>
|
|
<h3 class="admin-config-area-card__title">{{i18n @heading}}</h3>
|
|
<div class="admin-config-area-card__content">
|
|
{{yield}}
|
|
</div>
|
|
</section>
|
|
</template>
|
|
}
|