Skip to content

FileActionMenu with icon is not shown even though its registered #630

@BerengarWLehr

Description

@BerengarWLehr

Describe the bug

When I add an menu entry for audio files via API it is shown with the default icon. When I change the icon I can still get the FileActionMenu but it's not shown (and there are not requests to the server to fetch the icon).

Steps/Code to Reproduce

  1. Add manual daemon for app_api
  2. Add app
  3. Add FileActionMenu in function handling /enable request using the POST /api/v1/ui/files-actions-menu endpoints with all mandatory parameters and icon set to a relative URL (/static/icon.svg or /static/icon.png)*
  4. Request entry via GET /api/v1/ui/files-actions-menu with name parameter
  5. Retrieve menu entry as POSTed
  6. Log into NC and wonder why menu entry is not shown(if I do all this steps without the icon parameter it works just fine)

I use nc_py_api but assume that that's irrelevant as registering works without icon and even with icon the entry is given back as sent (trailing slashes are remove from icons relativ URL -> /static/icon.svg -> static/icon.svg
The URL of the icon is valid as tested multiple times but there are also no requests to any other URL on this endpoint what so ever.

Expected Results

Show the menu entry with correct icon

Actual Results

No menu entry shown

Setup configuration

NC 31.0.7
apps/app_api/appinfo/info.xml states this is app_api 5.0.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions