2023-11-08 08:50:37 -05:00
|
|
|
import Component from "@glimmer/component";
|
|
|
|
import { LinkTo } from "@ember/routing";
|
2023-11-29 17:01:48 -05:00
|
|
|
import i18n from "discourse-common/helpers/i18n";
|
2023-11-08 08:50:37 -05:00
|
|
|
|
|
|
|
export default class AISentimentDashboard extends Component {
|
2023-11-29 17:01:48 -05:00
|
|
|
static shouldRender(_outletArgs, helper) {
|
|
|
|
return helper.siteSettings.ai_sentiment_enabled;
|
|
|
|
}
|
|
|
|
|
2023-11-08 08:50:37 -05:00
|
|
|
<template>
|
|
|
|
<li class="navigation-item sentiment">
|
|
|
|
<LinkTo @route="admin.dashboardSentiment" class="navigation-link">
|
|
|
|
{{i18n "discourse_ai.sentiments.dashboard.title"}}
|
|
|
|
</LinkTo>
|
|
|
|
</li>
|
|
|
|
</template>
|
|
|
|
}
|