mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-07 12:08:13 +00:00
This PR adds new reports for displaying information about post sentiments grouped by date and emotions group by TL. Depends on discourse/discourse#24274
20 lines
549 B
Plaintext
20 lines
549 B
Plaintext
import Component from "@glimmer/component";
|
|
import { LinkTo } from "@ember/routing";
|
|
import I18n from "discourse-i18n";
|
|
|
|
const i18n = I18n.t.bind(I18n);
|
|
|
|
export default class AISentimentDashboard extends Component {
|
|
<template>
|
|
<li class="navigation-item sentiment">
|
|
<LinkTo @route="admin.dashboardSentiment" class="navigation-link">
|
|
{{i18n "discourse_ai.sentiments.dashboard.title"}}
|
|
</LinkTo>
|
|
</li>
|
|
</template>
|
|
|
|
static shouldRender(_outletArgs, helper) {
|
|
return helper.siteSettings.ai_sentiment_enabled;
|
|
}
|
|
}
|