diff options
Diffstat (limited to 'app/assets/javascripts/mirrors/mirror_repos.js')
-rw-r--r-- | app/assets/javascripts/mirrors/mirror_repos.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/mirrors/mirror_repos.js b/app/assets/javascripts/mirrors/mirror_repos.js index 5bf08be1ead..2995f19c470 100644 --- a/app/assets/javascripts/mirrors/mirror_repos.js +++ b/app/assets/javascripts/mirrors/mirror_repos.js @@ -1,6 +1,6 @@ import $ from 'jquery'; import { debounce } from 'lodash'; -import createFlash from '~/flash'; +import { createAlert } from '~/flash'; import axios from '~/lib/utils/axios_utils'; import { __ } from '~/locale'; import { hide } from '~/tooltips'; @@ -120,7 +120,7 @@ export default class MirrorRepos { .put(this.mirrorEndpoint, payload) .then(() => this.removeRow($target)) .catch(() => - createFlash({ + createAlert({ message: __('Failed to remove mirror.'), }), ); |