Commit 57cd0430 authored by Erick L's avatar Erick L Committed by Paul Gascou-Vaillancourt

Fixed Address require-string-literal-i18n-helpers offenses

Change require string literal i18n-helpers to wrapper by sprintf

type: fixed
parent 817d5d87
/* eslint-disable @gitlab/require-string-literal-i18n-helpers */
import $ from 'jquery'; import $ from 'jquery';
import Visibility from 'visibilityjs'; import Visibility from 'visibilityjs';
import Vue from 'vue'; import Vue from 'vue';
...@@ -621,7 +620,7 @@ export const submitSuggestion = ( ...@@ -621,7 +620,7 @@ export const submitSuggestion = (
const flashMessage = errorMessage || defaultMessage; const flashMessage = errorMessage || defaultMessage;
createFlash({ createFlash({
message: __(flashMessage), message: flashMessage,
parent: flashContainer, parent: flashContainer,
}); });
}) })
...@@ -657,7 +656,7 @@ export const submitSuggestionBatch = ({ commit, dispatch, state }, { message, fl ...@@ -657,7 +656,7 @@ export const submitSuggestionBatch = ({ commit, dispatch, state }, { message, fl
const flashMessage = errorMessage || defaultMessage; const flashMessage = errorMessage || defaultMessage;
createFlash({ createFlash({
message: __(flashMessage), message: flashMessage,
parent: flashContainer, parent: flashContainer,
}); });
}) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment