diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-21 06:10:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-21 06:10:27 +0300 |
commit | 6575e44cae996d484cbba87a078022768a116db9 (patch) | |
tree | 384f6399d1bea03503354b88ce151867ce4daa1b /app/assets/javascripts/right_sidebar.js | |
parent | 019109eac9cbddc6149af0adeff1aad8195b1457 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/right_sidebar.js')
-rw-r--r-- | app/assets/javascripts/right_sidebar.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/right_sidebar.js b/app/assets/javascripts/right_sidebar.js index 6cdd89ad431..24041a60e3d 100644 --- a/app/assets/javascripts/right_sidebar.js +++ b/app/assets/javascripts/right_sidebar.js @@ -3,7 +3,7 @@ import $ from 'jquery'; import Cookies from 'js-cookie'; import { fixTitle, hide } from '~/tooltips'; -import { deprecatedCreateFlash as flash } from './flash'; +import createFlash from './flash'; import axios from './lib/utils/axios_utils'; import { sprintf, s__, __ } from './locale'; @@ -98,12 +98,12 @@ Sidebar.prototype.toggleTodo = function (e) { this.todoUpdateDone(data); }) .catch(() => - flash( - sprintf(__('There was an error %{message} todo.'), { + createFlash({ + message: sprintf(__('There was an error %{message} todo.'), { message: ajaxType === 'post' ? s__('RightSidebar|adding a') : s__('RightSidebar|deleting the'), }), - ), + }), ); }; |