[FIX] website_mass_mailing: do not translate code

Only translate the literal strings

X-original-commit: 074191bb61b02e894b6cb7435e0b9b8909699a5e
This commit is contained in:
Martin Trigaux
2020-11-19 07:43:31 +00:00
parent 003c81aaa0
commit 330698367b
@@ -108,7 +108,7 @@ publicWidget.registry.subscribe = publicWidget.Widget.extend({
}
self.displayNotification({
type: toastType,
title: _t(`${toastType === 'success' ? 'Success' : 'Error'}`),
title: toastType === 'success' ? _t('Success') : _t('Error'),
message: result.toast_content,
sticky: true,
});