Commit a66ddd65 authored by PaytonBurdette's avatar PaytonBurdette

Migrate loading icon

Migrate notes loading icon to be
pajamas compliant.

Changelog: changed
parent 230d6d19
...@@ -17,6 +17,7 @@ import { escape, uniqueId } from 'lodash'; ...@@ -17,6 +17,7 @@ import { escape, uniqueId } from 'lodash';
import Vue from 'vue'; import Vue from 'vue';
import '~/lib/utils/jquery_at_who'; import '~/lib/utils/jquery_at_who';
import AjaxCache from '~/lib/utils/ajax_cache'; import AjaxCache from '~/lib/utils/ajax_cache';
import { loadingIconForLegacyJS } from '~/loading_icon_for_legacy_js';
import syntaxHighlight from '~/syntax_highlight'; import syntaxHighlight from '~/syntax_highlight';
import CommentTypeDropdown from '~/notes/components/comment_type_dropdown.vue'; import CommentTypeDropdown from '~/notes/components/comment_type_dropdown.vue';
import * as constants from '~/notes/constants'; import * as constants from '~/notes/constants';
...@@ -1761,9 +1762,11 @@ export default class Notes { ...@@ -1761,9 +1762,11 @@ export default class Notes {
// Show updated comment content temporarily // Show updated comment content temporarily
$noteBodyText.html(formContent); $noteBodyText.html(formContent);
$editingNote.removeClass('is-editing fade-in-full').addClass('being-posted fade-in-half'); $editingNote.removeClass('is-editing fade-in-full').addClass('being-posted fade-in-half');
$editingNote
.find('.note-headline-meta a') const $timeAgo = $editingNote.find('.note-headline-meta a');
.html('<span class="spinner align-text-bottom"></span>');
$timeAgo.empty();
$timeAgo.append(loadingIconForLegacyJS({ inline: true, size: 'sm' }));
// Make request to update comment on server // Make request to update comment on server
axios axios
......
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