mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Add notifier name to modal title
This commit is contained in:
parent
66bb922012
commit
5863b62ccf
2 changed files with 14 additions and 4 deletions
|
@ -1353,12 +1353,22 @@ class WebInterface(object):
|
|||
|
||||
@cherrypy.expose
|
||||
def get_notification_agent_config(self, config_id, **kwargs):
|
||||
config = notifiers.get_notification_agent_config(config_id=config_id)
|
||||
if config_id.isdigit():
|
||||
config = notifiers.get_notification_agent_config(config_id=config_id)
|
||||
agents = notifiers.available_notification_agents()
|
||||
for agent in agents:
|
||||
if int(config_id) == agent['id']:
|
||||
this_agent = agent
|
||||
break
|
||||
else:
|
||||
this_agent = None
|
||||
else:
|
||||
return None
|
||||
|
||||
checkboxes = {'email_tls': checked(plexpy.CONFIG.EMAIL_TLS)}
|
||||
|
||||
return serve_template(templatename="notification_config.html", title="Notification Configuration",
|
||||
config_id=config_id, data=config, checkboxes=checkboxes)
|
||||
agent=this_agent, data=config, checkboxes=checkboxes)
|
||||
|
||||
@cherrypy.expose
|
||||
def get_notification_agent_triggers(self, config_id, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue