Bootstrap modal and prompt repeat setting

Created on 28 June 2022, over 2 years ago
Updated 2 March 2023, almost 2 years ago

Problem/Motivation

I use Bootstrap in all my themes, one way or the other. Pretty sure that this is common. So I wanted to develop the option to use a Bootstrap modal.

I noticed that the prompt, in any display type, would be shown on every page load. Until the user clicks the accept.

So, I'd like to control how often it is repeated after a user hits decline.

Proposed resolution

  • Develop the Bootstrap modal option
  • Introduce a cookie to set once the prompt is declined
  • Add setting to configure the cookie expiry date. This allows us to determine when to show the prompt next after a decline.
  • Move display type setting into the new prompt settings fieldset (makes sense at this point)

This patch will depend on patches in the following: https://www.drupal.org/project/advanced_pwa/issues/3287328#comment-14578826 Prompt Permission, Rules and Flag integrations Closed: duplicate & https://www.drupal.org/project/advanced_pwa/issues/3287328#comment-14580967 Prompt Permission, Rules and Flag integrations Closed: duplicate & https://www.drupal.org/project/advanced_pwa/issues/3292094#comment-14585706 Add setting for customising the prompt text Closed: duplicate

Feature request
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom gMaximus

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024