mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 16:38:33 +08:00
4c1c25027d
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.
17 lines
489 B
Plaintext
17 lines
489 B
Plaintext
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>
|
|
}
|