Add notifier name to modal title

This commit is contained in:
Jonathan Wong 2015-12-12 17:32:32 -08:00
parent 66bb922012
commit 5863b62ccf
2 changed files with 14 additions and 4 deletions

View file

@ -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):