mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -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,
|
default as highlightHTML,
|
||||||
unhighlightHTML,
|
unhighlightHTML,
|
||||||
} from "discourse/lib/highlight-html";
|
} from "discourse/lib/highlight-html";
|
||||||
|
import { spinnerHTML } from "discourse/helpers/loading-spinner";
|
||||||
|
|
||||||
let _beforeAdoptDecorators = [];
|
let _beforeAdoptDecorators = [];
|
||||||
let _afterAdoptDecorators = [];
|
let _afterAdoptDecorators = [];
|
||||||
@ -185,7 +186,9 @@ export default class PostCooked {
|
|||||||
const originalText =
|
const originalText =
|
||||||
$blockQuote.text().trim() ||
|
$blockQuote.text().trim() ||
|
||||||
$("> blockquote", this.attrs.cooked).text().trim();
|
$("> blockquote", this.attrs.cooked).text().trim();
|
||||||
$blockQuote.html(I18n.t("loading"));
|
|
||||||
|
$blockQuote.html(spinnerHTML);
|
||||||
|
|
||||||
let topicId = this.attrs.topicId;
|
let topicId = this.attrs.topicId;
|
||||||
if ($aside.data("topic")) {
|
if ($aside.data("topic")) {
|
||||||
topicId = $aside.data("topic");
|
topicId = $aside.data("topic");
|
||||||
|
Loading…
Reference in New Issue
Block a user