Skip to content
Snippets Groups Projects
Commit 278accc9 authored by Podosochnyy Maxim's avatar Podosochnyy Maxim
Browse files

Добавлена поддержка действий

parent d8b33674
No related branches found
No related tags found
1 merge request!62Добавлена поддержка действий
......@@ -20,29 +20,16 @@ def make_action_dict(
action_id: str,
name: str,
kind: int,
classes: Optional[list[str]] = None,
target: Optional[int] = 0,
description: Optional[str] = "",
icon: Optional[str] = "",
confirm: bool = True,
view: Optional[int] = 0,
**kwargs,
) -> dict:
if not classes:
classes = ["*"]
action_id = process_action_id(action_id)
return {
"id": action_id,
"action": f"grpc:///{extension_id}/{action_id}",
"name": name,
"target": target,
"classes": classes,
"description": description,
"icon": icon,
"kind": kind,
"confirm": confirm,
"view": view,
**kwargs,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment