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
2e638110
Commit
2e638110
authored
Jan 05, 2021
by
Jarek Ostrowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update toast position on set status
parent
af122438
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
app/assets/javascripts/set_status_modal/set_status_modal_wrapper.vue
...javascripts/set_status_modal/set_status_modal_wrapper.vue
+1
-4
changelogs/unreleased/update-toast-position-set-status.yml
changelogs/unreleased/update-toast-position-set-status.yml
+5
-0
spec/frontend/set_status_modal/set_status_modal_wrapper_spec.js
...rontend/set_status_modal/set_status_modal_wrapper_spec.js
+1
-4
No files found.
app/assets/javascripts/set_status_modal/set_status_modal_wrapper.vue
View file @
2e638110
...
...
@@ -172,10 +172,7 @@ export default {
.
catch
(
this
.
onUpdateFail
);
},
onUpdateSuccess
()
{
this
.
$toast
.
show
(
s__
(
'
SetStatusModal|Status updated
'
),
{
type
:
'
success
'
,
position
:
'
top-center
'
,
});
this
.
$toast
.
show
(
s__
(
'
SetStatusModal|Status updated
'
));
this
.
closeModal
();
window
.
location
.
reload
();
},
...
...
changelogs/unreleased/update-toast-position-set-status.yml
0 → 100644
View file @
2e638110
---
title
:
Update toast position on set status
merge_request
:
50886
author
:
type
:
fixed
spec/frontend/set_status_modal/set_status_modal_wrapper_spec.js
View file @
2e638110
...
...
@@ -204,10 +204,7 @@ describe('SetStatusModalWrapper', () => {
findModal
().
vm
.
$emit
(
'
ok
'
);
await
wrapper
.
vm
.
$nextTick
();
expect
(
$toast
.
show
).
toHaveBeenCalledWith
(
'
Status updated
'
,
{
position
:
'
top-center
'
,
type
:
'
success
'
,
});
expect
(
$toast
.
show
).
toHaveBeenCalledWith
(
'
Status updated
'
);
});
});
...
...
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