Option show only once enables "Don't Show Again" checkbox.

Created on 16 May 2023, over 1 year ago
Updated 26 July 2023, over 1 year ago

Problem/Motivation

Modal extra option "Show only once" has a side-effect of enabling the checkbox for "Don't Show Again" on modal footer. Even though these are similar options and can probably have shared code, they are independently configured and treated, so this should not happen.

The behavior is the same for 4.x and 5.x versions.
This can be mitigated by manually adding a hide class to modal footer if nothing is supposed to be displayed.

Steps to reproduce

Add a modal;
Check Show Modal Footer. Disable the option "Don't Show Again";
On EXTRAS, check "Show modal only once".

Expected: no visible checkbox appear on the modal footer.
Result: visible checkbox with label "1" appear on the modal footer.

Proposed resolution

Don't manipulate the dont_show_again variable based on getShowModalOnlyOnce(). This would require small logic changes to the preprocess_html.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

5.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024