Skip to content
Snippets Groups Projects

Prepare 11.7.5 release

Merged GitLab Release Tools Bot requested to merge 11-7-stable-patch-5 into 11-7-stable
35 files
+ 371
50
Compare changes
  • Side-by-side
  • Inline
Files
35
@@ -415,12 +415,13 @@ export const submitSuggestion = (
@@ -415,12 +415,13 @@ export const submitSuggestion = (
commit(types.APPLY_SUGGESTION, { discussionId, noteId, suggestionId });
commit(types.APPLY_SUGGESTION, { discussionId, noteId, suggestionId });
callback();
callback();
})
})
.catch(() => {
.catch(err => {
Flash(
const defaultMessage = __(
__('Something went wrong while applying the suggestion. Please try again.'),
'Something went wrong while applying the suggestion. Please try again.',
'alert',
flashContainer,
);
);
 
const flashMessage = err.response.data ? `${err.response.data.message}.` : defaultMessage;
 
 
Flash(__(flashMessage), 'alert', flashContainer);
callback();
callback();
});
});
};
};
Loading