Project

General

Profile

Actions

Defect #41880

closed

Plugin activity icons broken after switching to SVG icons

Added by Stefan Rinkes about 1 month ago. Updated 26 days ago.

Status:
Closed
Priority:
Normal
Category:
Plugin API
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

When a plugin is registered as ActivityProvider, their activities can't get an icon.
I already created the config/icon_source.yml and for the "menu :admin_menu" it works, thanks to #41715.
But no luck for the plugin activities.

In _activities.html.erb it gets the event and passes its type to get the icon, but it misses the info that the icon must be searched in the plugin assets.

  <%= activity_event_type_icon e.event_type %>

Is it not possible anymore or am I holding it wrong?


Files

activity_test.zip (6.59 KB) activity_test.zip Stefan Rinkes, 2024-12-02 10:27
clipboard-202412100153-xh5so.png (102 KB) clipboard-202412100153-xh5so.png Marius BĂLTEANU, 2024-12-10 00:53
0001-WIP.patch (2.63 KB) 0001-WIP.patch Marius BĂLTEANU, 2024-12-10 00:55
Actions

Also available in: Atom PDF