From fc299bed0dec42eff7d28ed6abec74c53f542c68 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Mon, 21 Sep 2020 13:26:19 +0200 Subject: [PATCH] UX: Replace "Loading..." in quotes with a spinner --- app/assets/javascripts/discourse/app/widgets/post-cooked.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/widgets/post-cooked.js b/app/assets/javascripts/discourse/app/widgets/post-cooked.js index 86e9e8d39af..8f8ca43b7df 100644 --- a/app/assets/javascripts/discourse/app/widgets/post-cooked.js +++ b/app/assets/javascripts/discourse/app/widgets/post-cooked.js @@ -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");