Skip to content

Commit 6bc4f33

Browse files
authored
Merge pull request #145 from merefield/fix_some_deprecations
COMPATIBILTY: convert some templates, fix deprecation
2 parents e603890 + f58f55e commit 6bc4f33

File tree

8 files changed

+25
-7
lines changed

8 files changed

+25
-7
lines changed

assets/javascripts/discourse/components/chatbot-launch.gjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export default class ContentLanguageDiscovery extends Component {
132132
@id={{if this.primaryButton "chatbot-btn"}}
133133
@class={{concatClass "chatbot-btn" this.chatbotLaunchClass}}
134134
...attributes
135-
@action={{action this.startChatting}}
135+
@action={{this.startChatting}}
136136
@title={{this.title}}
137137
>
138138
{{#if this.chatbotLaunchUseAvatar}}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import ChatbotLaunch from "../../components/chatbot-launch";
2+
3+
<template>
4+
<ChatbotLaunch />
5+
</template>

assets/javascripts/discourse/connectors/above-main-container/chatbot-launcher-link.hbs

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import ComposerRaiser from "../../components/composer-raiser";
2+
3+
<template>
4+
<ComposerRaiser @model={{this.model}} />
5+
</template>

assets/javascripts/discourse/connectors/topic-above-posts/link-composer-raiser.hbs

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Component from "@glimmer/component";
2+
import { service } from "@ember/service";
3+
import ChatbotUserPreferences from "../../components/chatbot-user-preferences";
4+
5+
export default class ChatbotUserPreferencesConnector extends Component {
6+
@service siteSettings;
7+
8+
<template>
9+
{{#if this.siteSettings.chatbot_enabled}}
10+
<ChatbotUserPreferences @model={{@model}} />
11+
{{/if}}
12+
</template>
13+
}

assets/javascripts/discourse/connectors/user-custom-preferences/chatbot-user-preferences.hbs

Lines changed: 0 additions & 3 deletions
This file was deleted.

plugin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22
# name: discourse-chatbot
33
# about: a plugin that allows you to have a conversation with a configurable chatbot in Chat, Topics and Private Messages
4-
# version: 1.5.16
4+
# version: 1.5.17
55
# authors: merefield
66
# url: https://github.com/merefield/discourse-chatbot
77

0 commit comments

Comments
 (0)