mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Refresh Join device list when changing API key
This commit is contained in:
parent
1e1e3beca6
commit
69cfbea5f3
2 changed files with 3 additions and 1 deletions
|
@ -217,7 +217,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
$('#pushbullet_apikey, #pushover_apitoken, #scripts_folder').on('change', function () {
|
||||
$('#pushbullet_apikey, #pushover_apitoken, #scripts_folder, #join_apikey').on('change', function () {
|
||||
// Reload modal to update certain fields
|
||||
doAjaxCall('set_notification_config', $(this), 'tabs', true, reloadModal);
|
||||
return false;
|
||||
|
|
|
@ -2633,6 +2633,8 @@ class JOIN(object):
|
|||
|
||||
def return_config_options(self):
|
||||
devices = '<br>'.join(['%s: %s' % (v, k) for k, v in self.get_devices().iteritems() if k])
|
||||
if not devices:
|
||||
devices = 'Enter your Join API key to load your device list.'
|
||||
|
||||
config_option = [{'label': 'Join API Key',
|
||||
'value': self.apikey,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue