We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbdbb49 commit f58f55eCopy full SHA for f58f55e
assets/javascripts/discourse/connectors/user-custom-preferences/chatbot-user-preferences.gjs
@@ -1,7 +1,13 @@
1
+import Component from "@glimmer/component";
2
+import { service } from "@ember/service";
3
import ChatbotUserPreferences from "../../components/chatbot-user-preferences";
4
-<template>
- {{#if this.siteSettings.chatbot_enabled}}
5
- <ChatbotUserPreferences @model={{this.model}} />
6
- {{/if}}
7
-</template>
+export default class ChatbotUserPreferencesConnector extends Component {
+ @service siteSettings;
+
8
+ <template>
9
+ {{#if this.siteSettings.chatbot_enabled}}
10
+ <ChatbotUserPreferences @model={{@model}} />
11
+ {{/if}}
12
+ </template>
13
+}
0 commit comments