discourse-ai/assets/javascripts/discourse/connectors/admin-dashboard-tabs-after/admin-sentiment-dashbboard.gjs

18 lines
531 B
Plaintext
Raw Normal View History

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";
export default class AISentimentDashboard extends Component {
2023-11-29 17:01:48 -05:00
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>
}