Navigation sections declared, guide editor drag + references, USB settings, permission refresh
This commit is contained in:
@@ -70,6 +70,27 @@ class USBPlugin(BasePlugin):
|
||||
'docs': 'plugins/usb/README.md',
|
||||
}
|
||||
|
||||
def get_settings_cards(self) -> List[Dict]:
|
||||
"""Somewhere to actually turn the kiosk on.
|
||||
|
||||
The kiosk page tells an administrator to enable it in Settings under
|
||||
USB. Without this card that place does not exist, and the instruction
|
||||
is a dead end - the same trap the backups plugin shipped with, where
|
||||
settings existed but only a shell could reach them.
|
||||
"""
|
||||
return [
|
||||
{
|
||||
'group': 'USB Devices',
|
||||
'to': '/settings/usb',
|
||||
'icon': 'usb',
|
||||
'title': 'USB Settings',
|
||||
'description': 'Logged-out kiosk for taking and returning '
|
||||
'drives, and whether somebody may return a drive '
|
||||
'checked out to another person',
|
||||
'position': 45,
|
||||
},
|
||||
]
|
||||
|
||||
def get_settings_defaults(self) -> List[Dict]:
|
||||
"""Kiosk settings.
|
||||
|
||||
@@ -144,7 +165,8 @@ class USBPlugin(BasePlugin):
|
||||
'name': 'USB Devices',
|
||||
'icon': 'usb',
|
||||
'route': '/usb',
|
||||
'position': 45,
|
||||
'position': 25,
|
||||
'section': 'assets',
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user