Skip to content

Commit

Permalink
Customizable launcher title
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kastl <[email protected]>
  • Loading branch information
dkastl committed Nov 5, 2021
1 parent f09a7f1 commit fc60ac0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/javascripts/chatwoot.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ $(document).ready(function(){
position: cfg.getAttribute("data-position"),
locale: document.getElementsByTagName("html")[0].getAttribute("lang"),
type: cfg.getAttribute("data-type"),
launcherTitle: cfg.getAttribute("data-launcher-title"),
showPopoutButton: true,
};

Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ en:
option_chatwoot_position_right: "Right"
permission_view_chatwoot: "Show Live Chat"
project_module_chatwoot: "Live Chat"
chatwoot_launcher_title: "Chat with us"
1 change: 1 addition & 0 deletions config/locales/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ ja:
option_chatwoot_position_right: "右側"
permission_view_chatwoot: "ライブチャットを表示"
project_module_chatwoot: "ライブチャット"
chatwoot_launcher_title: "チャットをする"
3 changes: 2 additions & 1 deletion lib/redmine_chatwoot/view_hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ def view_layouts_base_body_bottom(context={})
:server => Setting.plugin_redmine_chatwoot['chatwoot_server'],
:token => Setting.plugin_redmine_chatwoot['chatwoot_token'],
:type => Setting.plugin_redmine_chatwoot['chatwoot_type'],
:position => Setting.plugin_redmine_chatwoot['chatwoot_position']
:position => Setting.plugin_redmine_chatwoot['chatwoot_position'],
:launcher_title => l(:chatwoot_launcher_title)
}, :id => 'chatwoot-config', :style => 'display:none')
return tags.join("\n")
end
Expand Down

0 comments on commit fc60ac0

Please sign in to comment.