FlowFuse / FlowFuse/flowfuse

Cannot have an empty kebab menu per row

Open
#2,827 1 comment 0 reactions 0 assignees View on GitHub
area:frontend size:XS
Dominant language
JavaScript
Stars
400
Forks
89
Avg merge
1d 20h
Merged PRs (30d)
149

Description

### Current Behavior

Work in https://github.com/flowforge/flowforge/pull/2750 highlighted the need to hide the kebab menu dots (or visibly disable the dots and action) when there are no child elements in the menu.

As a temporary workaround, an disabled entry labelled "No actions available" was added for the empty kebab menu rows
![image](https://github.com/flowforge/flowforge/assets/44235289/d0256f81-e975-497a-a742-8118ebf42712)

### Expected Behavior

Kebab dots should be hidden or clearly disabled when the menu has no child entries

### Steps To Reproduce

* visit device > device x > snapshots
* uncheck "Show only Snapshots from this device"
* click the kebab menu of a non owned snapshot row

### Environment

- FlowForge version: > 1.11.4 (git)
- Node.js version:
- npm version:
- Platform/OS:
- Browser:

### Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.