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
a19c83dd
Commit
a19c83dd
authored
Nov 09, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consistently use Vue.nexTick when starting taskList
parent
84de687a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
app/assets/javascripts/notes/stores/actions.js
app/assets/javascripts/notes/stores/actions.js
+11
-8
No files found.
app/assets/javascripts/notes/stores/actions.js
View file @
a19c83dd
...
...
@@ -66,7 +66,7 @@ export const updateNote = ({ commit, dispatch }, { endpoint, note }) =>
.
then
(
res
=>
res
.
json
())
.
then
(
res
=>
{
commit
(
types
.
UPDATE_NOTE
,
res
);
Vue
.
nextTick
(()
=>
dispatch
(
'
startTaskList
'
)
);
dispatch
(
'
startTaskList
'
);
});
export
const
replyToDiscussion
=
({
commit
},
{
endpoint
,
data
})
=>
...
...
@@ -265,7 +265,7 @@ const pollSuccessCallBack = (resp, commit, state, getters, dispatch) => {
}
});
Vue
.
nextTick
(()
=>
dispatch
(
'
startTaskList
'
)
);
dispatch
(
'
startTaskList
'
);
}
commit
(
types
.
SET_LAST_FETCHED_AT
,
resp
.
last_fetched_at
);
...
...
@@ -375,12 +375,15 @@ export const setCommentsDisabled = ({ commit }, data) => {
};
export
const
startTaskList
=
({
dispatch
})
=>
Vue
.
nextTick
(
()
=>
new
TaskList
({
dataType
:
'
note
'
,
fieldName
:
'
note
'
,
selector
:
'
.notes .is-editable
'
,
onSuccess
:
()
=>
Vue
.
nextTick
(()
=>
dispatch
(
'
startTaskList
'
)),
});
onSuccess
:
()
=>
dispatch
(
'
startTaskList
'
),
}),
);
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export
default
()
=>
{};
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