mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
frontpage: Separate shortcuts for XMPP server and client
This commit is contained in:
parent
49eadd971a
commit
0fc1eaa1cd
@ -91,7 +91,10 @@ def setup(helper, old_version=None):
|
|||||||
|
|
||||||
|
|
||||||
def add_shortcut():
|
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):
|
class EjabberdServiceView(ServiceView):
|
||||||
@ -127,6 +130,7 @@ def enable():
|
|||||||
def disable():
|
def disable():
|
||||||
"""Enable the module."""
|
"""Enable the module."""
|
||||||
actions.superuser_run('xmpp', ['disable'])
|
actions.superuser_run('xmpp', ['disable'])
|
||||||
|
frontpage.remove_shortcut('jwchat')
|
||||||
frontpage.remove_shortcut('xmpp')
|
frontpage.remove_shortcut('xmpp')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user