Commit 9b70879b authored by Jacques Erasmus's avatar Jacques Erasmus Committed by Peter Hegman

Migrate loading icon to be Pajamas compliant

Migrated GPG key loading icon to the new `gl-loading-icon`

Changelog: changed
parent fc897527
......@@ -2,6 +2,7 @@ import $ from 'jquery';
import createFlash from '~/flash';
import axios from '~/lib/utils/axios_utils';
import { queryToObject } from '~/lib/utils/url_utility';
import { loadingIconForLegacyJS } from '~/loading_icon_for_legacy_js';
import { __ } from '~/locale';
......@@ -14,7 +15,7 @@ export default class GpgBadges {
const badges = $('.js-loading-gpg-badge');
badges.html('<span class="gl-spinner gl-spinner-orange gl-spinner-sm"></span>');
badges.html(loadingIconForLegacyJS());
badges.children().attr('aria-label', __('Loading'));
const displayError = () =>
......
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