mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
UX: Replace "Loading..." in quotes with a spinner
This commit is contained in:
parent
376255ed84
commit
fc299bed0d
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user