BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
e78b8223
Commit
e78b8223
authored
May 24, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue-edit-inline-getdata-after-update' into 'issue-edit-inline'
Get new data after inline edit save See merge request !11601
parents
d853d821
d3198c60
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
app.vue
app/assets/javascripts/issue_show/components/app.vue
+5
-0
app_spec.js
spec/javascripts/issue_show/components/app_spec.js
+24
-0
No files found.
app/assets/javascripts/issue_show/components/app.vue
View file @
e78b8223
...
...
@@ -124,6 +124,11 @@ export default {
gl
.
utils
.
visitUrl
(
location
.
pathname
);
}
return
this
.
service
.
getData
();
})
.
then
(
res
=>
res
.
json
())
.
then
((
data
)
=>
{
this
.
store
.
updateState
(
data
);
eventHub
.
$emit
(
'close.form'
);
})
.
catch
(()
=>
{
...
...
spec/javascripts/issue_show/components/app_spec.js
View file @
e78b8223
...
...
@@ -109,6 +109,30 @@ describe('Issuable output', () => {
});
describe
(
'updateIssuable'
,
()
=>
{
it
(
'fetches new data after update'
,
(
done
)
=>
{
spyOn
(
vm
.
service
,
'getData'
);
spyOn
(
vm
.
service
,
'updateIssuable'
).
and
.
callFake
(()
=>
new
Promise
((
resolve
)
=>
{
resolve
({
json
()
{
return
{
confidential
:
false
,
path
:
location
.
pathname
,
};
},
});
}));
vm
.
updateIssuable
();
setTimeout
(()
=>
{
expect
(
vm
.
service
.
getData
,
).
toHaveBeenCalled
();
done
();
});
});
it
(
'reloads the page if the confidential status has changed'
,
(
done
)
=>
{
spyOn
(
gl
.
utils
,
'visitUrl'
);
spyOn
(
vm
.
service
,
'updateIssuable'
).
and
.
callFake
(()
=>
new
Promise
((
resolve
)
=>
{
...
...
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