Skip to content

feat(countdown): let a display hide the add, edit and delete controls - #14

Open
mrramam wants to merge 1 commit into
jherforth:mainfrom
mrramam:feat/countdown-control-limits
Open

mrramam wants to merge 1 commit into
jherforth:mainfrom
mrramam:feat/countdown-control-limits

Conversation

@mrramam

@mrramam mrramam commented Sep 16, 2026

Copy link
Copy Markdown

Countdown declares manageCountdowns as a hideable control and reads hide from its URL at parse time, the same shape as TastyTiles (#12). Under the gate the Add New Countdown toggle and form are removed before first paint, per-item Edit and Delete are not rendered, and their handlers return early. No hide param hides nothing, so an older dashboard and a direct load are unaffected.

Verified with and without the param on our production display.

The manifest declares manageCountdowns as a hideable control. When the
dashboard names it on the iframe URL, the Add New Countdown button and
its form are removed at parse time, the per-item Edit and Delete buttons
are left out of the render, and the edit and delete handlers return
early. No hide param hides nothing, so an older dashboard and a direct
load of the file behave as before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants