Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7047d123
Commit
7047d123
authored
Mar 29, 2022
by
Ammar Alakkad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update createAlert docs
parent
0fce8e36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/flash.js
app/assets/javascripts/flash.js
+2
-2
No files found.
app/assets/javascripts/flash.js
View file @
7047d123
...
...
@@ -94,10 +94,10 @@ const addDismissFlashClickListener = (flashEl, fadeTransition) => {
*
* 1. Render a new alert
*
* import { createAlert,
ALERT_VARIANTS
} from '~/flash';
* import { createAlert,
VARIANT_WARNING
} from '~/flash';
*
* createAlert({ message: 'My error message' });
* createAlert({ message: 'My warning message', variant:
ALERT_VARIANTS.
WARNING });
* createAlert({ message: 'My warning message', variant:
VARIANT_
WARNING });
*
* 2. Dismiss this alert programmatically
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment