mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
add icon support for user settings
This commit is contained in:
@ -18,6 +18,7 @@ class NotificationMethod:
|
||||
"""
|
||||
|
||||
METHOD_NAME = ''
|
||||
METHOD_ICON = None
|
||||
CONTEXT_BUILTIN = ['name', 'message', ]
|
||||
CONTEXT_EXTRA = []
|
||||
GLOBAL_SETTING = None
|
||||
@ -156,7 +157,7 @@ class MethodStorageClass:
|
||||
# save definition
|
||||
methods.append({
|
||||
'key': new_key,
|
||||
'icon': 'envelope',
|
||||
'icon': getattr(item, 'METHOD_ICON', ''),
|
||||
'method': item.METHOD_NAME,
|
||||
})
|
||||
return methods
|
||||
|
Reference in New Issue
Block a user