mirror of
https://ghfast.top/https://github.com/discourse/discourse-ai.git
synced 2026-07-17 11:46:28 +08:00
17 lines
520 B
Text
17 lines
520 B
Text
import Component from "@glimmer/component";
|
|
import { LinkTo } from "@ember/routing";
|
|
import { i18n } from "discourse-i18n";
|
|
|
|
export default class AISentimentDashboard extends Component {
|
|
static shouldRender(_outletArgs, helper) {
|
|
return helper.siteSettings.ai_sentiment_enabled;
|
|
}
|
|
|
|
<template>
|
|
<li class="navigation-item sentiment">
|
|
<LinkTo @route="admin.dashboardSentiment" class="navigation-link">
|
|
{{i18n "discourse_ai.sentiments.dashboard.title"}}
|
|
</LinkTo>
|
|
</li>
|
|
</template>
|
|
}
|