View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0034406 | mantisbt | customization | public | 2024-04-18 05:37 | 2025-03-06 10:51 |
Reporter | paspiz85 | Assigned To | community | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | assigned | Resolution | open | ||
Target Version | 2.28.0 | ||||
Summary | 0034406: Allow changing navbar buttons | ||||
Description | I want to customize navbar buttons by adding extra buttons using a plugin. I need to add an event to manage these extra buttons. It could also be useful to modify existing buttons. | ||||
Tags | No tags attached. | ||||
My proposal is https://github.com/mantisbt/mantisbt/pull/1993 |
|
Example of usage https://github.com/paspiz85/MantisBT-NavbarButtons |
|
@paspiz85 I think this functionality can be implemented without changing MantisBT code. I suggest you to consider this scenario: your plugin will check user access level, and based on that, using EVENT_LAYOUT_RESOURCES event, load proper JavaScript with injection of necessary buttons into navbar (jQuery is available by default). Selection of buttons can be done in the UI part of the plugin. For sample you can use a built-in MantisCoreFormatting plugin (MantisCoreFormattingPlugin::resources()). Similar to 0023210. |
|