From 278accc9e2019b25f34cdc48511d9d3e73c7bf08 Mon Sep 17 00:00:00 2001
From: Maxim Podosochnyy <podosochnyy@perx.ru>
Date: Tue, 5 Mar 2024 13:16:07 +0700
Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?=
 =?UTF-8?q?=D0=BD=D0=B0=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6=D0=BA?=
 =?UTF-8?q?=D0=B0=20=D0=B4=D0=B5=D0=B9=D1=81=D1=82=D0=B2=D0=B8=D0=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 perxis/extensions/actions.py | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/perxis/extensions/actions.py b/perxis/extensions/actions.py
index da0a677..e2ae018 100644
--- a/perxis/extensions/actions.py
+++ b/perxis/extensions/actions.py
@@ -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,
     }
 
 
-- 
GitLab