# Task OP-15437 - Document Primer Flash Modals Pattern

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-15437

## Details

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Date | 2024-09-30 –  |
| Priority | Medium |
| Target versions | 15.0.0 |
| Category |  |
| Labels |  |

## Description

Useful in contexts where one wants to &quot;flash&quot; a modal dialog on the next request. The \`type\` is the view component and the parameters are the view component parameters

Example.

\`\`\`ruby  
flash\[:modal\] = {  
&nbsp;   type: &quot;Storages::Admin::OAuthAccessGrantNudgeModalComponent&quot;,  
    parameters: { project\_storage:, authorized:}

}

\`\`\`
