Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Frontend
Commits
f68f9aa3
Commit
f68f9aa3
authored
3 years ago
by
Yoann Schneider
Committed by
Bastien Abadie
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add a success notification when the template has been created
parent
d0560779
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1144
add a success notification when the template has been created
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/Process/TemplateCreation.js
+7
-0
7 additions, 0 deletions
test/Process/TemplateCreation.js
vue/Process/TemplateCreation.vue
+2
-0
2 additions, 0 deletions
vue/Process/TemplateCreation.vue
with
9 additions
and
0 deletions
test/Process/TemplateCreation.js
+
7
−
0
View file @
f68f9aa3
...
...
@@ -50,6 +50,13 @@ describe('Process/TemplateCreation.vue', () => {
{
mutation
:
'
process/setProcess
'
,
payload
:
templateSample
},
{
mutation
:
'
notifications/notify
'
,
payload
:
{
type
:
'
success
'
,
text
:
'
Template test_template has been created
'
}
}
])
})
...
...
This diff is collapsed.
Click to expand it.
vue/Process/TemplateCreation.vue
+
2
−
0
View file @
f68f9aa3
...
...
@@ -72,6 +72,8 @@ export default {
try
{
const
payload
=
{
name
:
this
.
templateName
}
await
this
.
$store
.
dispatch
(
'
process/createProcessTemplate
'
,
{
processId
:
this
.
processId
,
payload
})
// Notify when the template has been successfully created
this
.
notify
({
type
:
'
success
'
,
text
:
`Template
${
this
.
templateName
}
has been created`
})
// Reset the template name and closes the modal on success
this
.
templateName
=
''
this
.
showModal
=
false
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment