Skip to content

Commit fc60ac0

Browse files
committed
Customizable launcher title
Signed-off-by: Daniel Kastl <daniel@georepublic.de>
1 parent f09a7f1 commit fc60ac0

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

assets/javascripts/chatwoot.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ $(document).ready(function(){
1919
position: cfg.getAttribute("data-position"),
2020
locale: document.getElementsByTagName("html")[0].getAttribute("lang"),
2121
type: cfg.getAttribute("data-type"),
22+
launcherTitle: cfg.getAttribute("data-launcher-title"),
2223
showPopoutButton: true,
2324
};
2425

config/locales/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ en:
99
option_chatwoot_position_right: "Right"
1010
permission_view_chatwoot: "Show Live Chat"
1111
project_module_chatwoot: "Live Chat"
12+
chatwoot_launcher_title: "Chat with us"

config/locales/ja.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ ja:
99
option_chatwoot_position_right: "右側"
1010
permission_view_chatwoot: "ライブチャットを表示"
1111
project_module_chatwoot: "ライブチャット"
12+
chatwoot_launcher_title: "チャットをする"

lib/redmine_chatwoot/view_hooks.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ def view_layouts_base_body_bottom(context={})
1111
:server => Setting.plugin_redmine_chatwoot['chatwoot_server'],
1212
:token => Setting.plugin_redmine_chatwoot['chatwoot_token'],
1313
:type => Setting.plugin_redmine_chatwoot['chatwoot_type'],
14-
:position => Setting.plugin_redmine_chatwoot['chatwoot_position']
14+
:position => Setting.plugin_redmine_chatwoot['chatwoot_position'],
15+
:launcher_title => l(:chatwoot_launcher_title)
1516
}, :id => 'chatwoot-config', :style => 'display:none')
1617
return tags.join("\n")
1718
end

0 commit comments

Comments
 (0)