diff options
Diffstat (limited to 'app/assets/javascripts/namespaces/leave_by_url.js')
-rw-r--r-- | app/assets/javascripts/namespaces/leave_by_url.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/namespaces/leave_by_url.js b/app/assets/javascripts/namespaces/leave_by_url.js index e00c2abfbef..09757ce17fa 100644 --- a/app/assets/javascripts/namespaces/leave_by_url.js +++ b/app/assets/javascripts/namespaces/leave_by_url.js @@ -1,4 +1,4 @@ -import createFlash from '~/flash'; +import { createAlert } from '~/flash'; import { initRails } from '~/lib/utils/rails_ujs'; import { getParameterByName } from '~/lib/utils/url_utility'; import { __, sprintf } from '~/locale'; @@ -18,7 +18,7 @@ export default function leaveByUrl(namespaceType) { if (leaveLink) { leaveLink.click(); } else { - createFlash({ + createAlert({ message: sprintf(__('You do not have permission to leave this %{namespaceType}.'), { namespaceType, }), |