mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-21 05:54:19 +08:00
18 lines
386 B
Text
Vendored
18 lines
386 B
Text
Vendored
import Component from "@glimmer/component";
|
|
import { i18n } from "discourse-i18n";
|
|
|
|
export default class AdminPluginConfigArea extends Component {
|
|
linkText(navLink) {
|
|
if (navLink.label) {
|
|
return i18n(navLink.label);
|
|
} else {
|
|
return navLink.text;
|
|
}
|
|
}
|
|
|
|
<template>
|
|
<section class="admin-plugin-config-area">
|
|
{{yield}}
|
|
</section>
|
|
</template>
|
|
}
|