mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-31 03:50:11 -07:00
Add select dropdown to notification agents
* Change priority selections to dropdown
This commit is contained in:
parent
9968f8b6dd
commit
c12862ffba
2 changed files with 32 additions and 11 deletions
|
@ -467,8 +467,9 @@ class PROWL(object):
|
|||
{'label': 'Priority',
|
||||
'value': self.priority,
|
||||
'name': 'prowl_priority',
|
||||
'description': 'Set the priority (-2,-1,0,1 or 2).',
|
||||
'input_type': 'number'
|
||||
'description': 'Set the priority.',
|
||||
'input_type': 'select',
|
||||
'select_options': {-2: -2, -1: -1, 0: 0, 1: 1, 2: 2}
|
||||
}
|
||||
]
|
||||
|
||||
|
@ -695,8 +696,9 @@ class NMA(object):
|
|||
{'label': 'Priority',
|
||||
'value': plexpy.CONFIG.NMA_PRIORITY,
|
||||
'name': 'nma_priority',
|
||||
'description': 'Set the priority (-2,-1,0,1 or 2).',
|
||||
'input_type': 'number'
|
||||
'description': 'Set the priority.',
|
||||
'input_type': 'select',
|
||||
'select_options': {-2: -2, -1: -1, 0: 0, 1: 1, 2: 2}
|
||||
}
|
||||
]
|
||||
|
||||
|
@ -913,8 +915,9 @@ class PUSHOVER(object):
|
|||
{'label': 'Priority',
|
||||
'value': self.priority,
|
||||
'name': 'pushover_priority',
|
||||
'description': 'Set the priority (-2,-1,0,1 or 2).',
|
||||
'input_type': 'number'
|
||||
'description': 'Set the priority.',
|
||||
'input_type': 'select',
|
||||
'select_options': {-2: -2, -1: -1, 0: 0, 1: 1, 2: 2}
|
||||
},
|
||||
{'label': 'Sound',
|
||||
'value': self.sound,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue