Skip to content

Dashboard icons on the main page in the manager #2193

@evolution-lover

Description

@evolution-lover

Image

In the resources (pages) list, the enable/disable status works and is visualized correctly (✖️ and ✔️ icons toggle properly). However, the delete icon (🗑) is static and does not change depending on whether the resource is currently deleted or not.

Steps to reproduce:

  1. Navigate to the resource list in the admin panel.
  2. Observe the action buttons for an active (non-deleted) resource.
  3. Observe the action buttons for a resource that already has a "deleted" status.

Actual behavior:

The same trash icon (🗑) is displayed for both states (deleted and non-deleted resources). Because of this, it is visually unclear what the actual status of the resource is, and there is no obvious UI element to restore it.

Expected behavior:

The icon should toggle depending on the current status of the resource (similar to the enable/disable logic):

For non-deleted resources: display the trash icon (🗑). Clicking it deletes the resource.

For deleted resources: display a restore icon (e.g., ♻️, ↩️, or any standard "Restore" icon). Clicking it restores the resource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions