From 0fc1eaa1cdb3352f6ff728e221689beb383e9a20 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Tue, 30 Aug 2016 19:28:48 -0400 Subject: [PATCH] frontpage: Separate shortcuts for XMPP server and client --- plinth/modules/xmpp/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plinth/modules/xmpp/__init__.py b/plinth/modules/xmpp/__init__.py index 9fa650509..1dd2a2bfb 100644 --- a/plinth/modules/xmpp/__init__.py +++ b/plinth/modules/xmpp/__init__.py @@ -91,7 +91,10 @@ def setup(helper, old_version=None): def add_shortcut(): - frontpage.add_shortcut('xmpp', title, '/jwchat', 'glyphicon-comment') + frontpage.add_shortcut('jwchat', _('Chat Client (JWChat)'), '/jwchat', + 'glyphicon-comment') + frontpage.add_shortcut('xmpp', title, '?selected=xmpp', + 'glyphicon-comment', description) class EjabberdServiceView(ServiceView): @@ -127,6 +130,7 @@ def enable(): def disable(): """Enable the module.""" actions.superuser_run('xmpp', ['disable']) + frontpage.remove_shortcut('jwchat') frontpage.remove_shortcut('xmpp')