add warning icon on missing permissions
This commit is contained in:
@@ -12,7 +12,10 @@ from subzero.constants import ICON_SUB, ICON
|
||||
from support.scheduler import scheduler
|
||||
|
||||
default_thumb = R(ICON_SUB)
|
||||
main_icon = ICON if not config.is_development else "icon-dev.jpg"
|
||||
main_icon = ICON if config.permissions_ok else "icon-default_error.jpg"
|
||||
if config.is_development:
|
||||
main_icon = "icon-dev.jpg" if config.permissions_ok else "icon-dev_error.jpg"
|
||||
|
||||
|
||||
# noinspection PyUnboundLocalVariable
|
||||
route = enable_channel_wrapper(route)
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 138 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 137 KiB |
Reference in New Issue
Block a user