Files
zoneminder/db/zm_update-1.39.4.sql
T
Isaac ConnorandClaude Opus 4.6 dca0f76468 feat: add ZM_WEB_SHOW_NAV_BUTTONS config to hide Back/Refresh buttons
Add a boolean web config option to control visibility of the Back and
Refresh navigation buttons shown at the top of most views. Uses a body
class and CSS rule so no individual view files need changes.

Also remove the ZM_WEB_BUTTON_STYLE INSERT from the migration SQL since
zmupdate.pl handles Config table inserts from ConfigData.pm.in.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 18:56:14 -04:00

20 lines
749 B
SQL

--
-- Convert ZM_OPT_USE_REMEMBER_ME from boolean to tri-state (None/Yes/No)
--
UPDATE Config SET
Value = CASE WHEN Value = '1' THEN 'No' ELSE 'None' END,
Type = 'string',
DefaultValue = 'None',
Hint = 'None|Yes|No',
Pattern = '(?^i:^([YyNn]))',
Format = ' $1 ',
Prompt = 'Show a "Remember Me" option on the login page',
Help = '
Controls whether a "Remember Me" checkbox appears on the login page.
None: No checkbox is shown. Sessions always persist for ZM_COOKIE_LIFETIME.
Yes: Checkbox is shown and checked by default. Users may uncheck it for a session-only cookie.
No: Checkbox is shown and unchecked by default. Users may check it to persist the session.
'
WHERE Name = 'ZM_OPT_USE_REMEMBER_ME';