UX: Replace "Loading..." in quotes with a spinner

This commit is contained in:
Jarek Radosz 2020-09-21 13:26:19 +02:00
parent 376255ed84
commit fc299bed0d

View File

@ -8,6 +8,7 @@ import {
default as highlightHTML,
unhighlightHTML,
} from "discourse/lib/highlight-html";
import { spinnerHTML } from "discourse/helpers/loading-spinner";
let _beforeAdoptDecorators = [];
let _afterAdoptDecorators = [];
@ -185,7 +186,9 @@ export default class PostCooked {
const originalText =
$blockQuote.text().trim() ||
$("> blockquote", this.attrs.cooked).text().trim();
$blockQuote.html(I18n.t("loading"));
$blockQuote.html(spinnerHTML);
let topicId = this.attrs.topicId;
if ($aside.data("topic")) {
topicId = $aside.data("topic");