diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-07-05 22:59:30 +0000 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-07-05 22:59:30 +0000 |
commit | 23bd46cf015aebcb34d125c705915f164d756762 (patch) | |
tree | 12505c8f169c1d944244308e24a32a72fea5b193 /app/assets/javascripts/notes/stores | |
parent | c0e193db9ee51dcd1779c4ff787c63dab926aa1c (diff) | |
download | gitlab-ce-23bd46cf015aebcb34d125c705915f164d756762.tar.gz |
Remove applySuggestion from notes service
Diffstat (limited to 'app/assets/javascripts/notes/stores')
-rw-r--r-- | app/assets/javascripts/notes/stores/actions.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/notes/stores/actions.js b/app/assets/javascripts/notes/stores/actions.js index 9054b4779aa..fef962f008e 100644 --- a/app/assets/javascripts/notes/stores/actions.js +++ b/app/assets/javascripts/notes/stores/actions.js @@ -14,6 +14,7 @@ import sidebarTimeTrackingEventHub from '../../sidebar/event_hub'; import { isInViewport, scrollToElement, isInMRPage } from '../../lib/utils/common_utils'; import mrWidgetEventHub from '../../vue_merge_request_widget/event_hub'; import { __ } from '~/locale'; +import Api from '~/api'; let eTagPoll; @@ -449,8 +450,7 @@ export const submitSuggestion = ( { commit, dispatch }, { discussionId, noteId, suggestionId, flashContainer }, ) => - service - .applySuggestion(suggestionId) + Api.applySuggestion(suggestionId) .then(() => commit(types.APPLY_SUGGESTION, { discussionId, noteId, suggestionId })) .then(() => dispatch('resolveDiscussion', { discussionId }).catch(() => {})) .catch(err => { |