From f5e0f52320fbf618b97e275c54f39176303d060d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 6 Nov 2024 14:58:10 +0100 Subject: đŸ’„ quick actions: put management actions in orange MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models_common.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ishtar_common/models_common.py') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index dee43d6f8..ed2d46305 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -3404,6 +3404,7 @@ class MainItem(ShortMenuItem, SerializeItem, SheetItem): [ action.base_url, mark_safe(action.text), + action.btn_class, mark_safe(action.rendered_icon), action.target or "", action.is_popup, @@ -4233,6 +4234,7 @@ class QuickAction: rights=None, module=None, is_popup=True, + btn_class="btn-success" ): self.url = url self.icon_class = icon_class @@ -4241,6 +4243,7 @@ class QuickAction: self.target = target self.module = module self.is_popup = is_popup + self.btn_class = btn_class if self.target not in ("one", "many", None): raise AttributeError("target must be one, many or None") -- cgit v1.2.3