mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 20:19:02 +08:00

We used this flag for experimenting with admin plugin sidebars. We have now settled on a tabbed layout, and this is no longer needed. This PR simply ignores the flag in a backwards-compatible way, so we can discontinue usage in plugins and then remove the backwards-compatibility in core.
22 lines
463 B
Plaintext
22 lines
463 B
Plaintext
import Component from "@glimmer/component";
|
|
import { service } from "@ember/service";
|
|
import { i18n } from "discourse-i18n";
|
|
|
|
export default class AdminPluginConfigArea extends Component {
|
|
@service adminPluginNavManager;
|
|
|
|
linkText(navLink) {
|
|
if (navLink.label) {
|
|
return i18n(navLink.label);
|
|
} else {
|
|
return navLink.text;
|
|
}
|
|
}
|
|
|
|
<template>
|
|
<section class="admin-plugin-config-area">
|
|
{{yield}}
|
|
</section>
|
|
</template>
|
|
}
|