Add way for gallery providers to specify bulk actions.
This commit is contained in:
parent
3e38722d45
commit
2dcd386661
4 changed files with 57 additions and 0 deletions
|
|
@ -332,6 +332,13 @@ class BaseCamera(OFMThing, ABC):
|
|||
self.logger.info(f"Deleting: {capture}")
|
||||
os.remove(capture)
|
||||
|
||||
def get_gallery_bulk_actions(self) -> list[ActionButton]:
|
||||
"""Return the bulk gallery actions for cameras.
|
||||
|
||||
By default there are no bulk actions.
|
||||
"""
|
||||
return []
|
||||
|
||||
@lt.endpoint(
|
||||
"delete",
|
||||
"capture/{name}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue