From 8fda25c9976024437396f3e087d6d67dea78f8d0 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sun, 25 Mar 2018 10:43:56 +0200 Subject: [PATCH] Honor the allow_logout setting --- src/converse-profile.js | 1 + src/templates/profile_view.html | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/converse-profile.js b/src/converse-profile.js index cc346920c..26cdd932d 100644 --- a/src/converse-profile.js +++ b/src/converse-profile.js @@ -114,6 +114,7 @@ 'status_message': this.model.get('status_message') || __("I am %1$s", this.getPrettyStatus(chat_status)), 'chat_status': chat_status, + '_converse': _converse, 'title_change_settings': __('Change settings'), 'title_change_status': __('Click to change your chat status'), 'title_log_out': __('Log out'), diff --git a/src/templates/profile_view.html b/src/templates/profile_view.html index e79cdd669..96d8f9a99 100644 --- a/src/templates/profile_view.html +++ b/src/templates/profile_view.html @@ -8,7 +8,9 @@ {{{o.fullname}}} - + {[ if (o._converse.allow_logout) { ]} + + {[ } ]}