FIX: Remove buffered-render reference

Buffered-render has been removed from core, so this change allows us to
keep the same functionality without using the render buffer.
This commit is contained in:
Blake Erickson 2020-01-11 06:04:14 -07:00
parent d2ac25857f
commit 6707072ef1
2 changed files with 56 additions and 57 deletions

View File

@ -1,6 +1,5 @@
import { categoryLinkHTML } from "discourse/helpers/category-link";
import { autoUpdatingRelativeAge } from "discourse/lib/formatter";
import { bufferedRender } from "discourse-common/lib/buffered-render";
import { iconHTML, convertIconClass } from "discourse-common/lib/icon-library";
function icon_or_image_replacement(str, ctx) {
@ -47,11 +46,11 @@ function guessUrl(t) {
return [dest, name];
}
const QueryRowContentComponent = Ember.Component.extend(
bufferedRender({
const QueryRowContentComponent = Ember.Component.extend({
tagName: "tr",
rowContents: null,
buildBuffer(buffer) {
didReceiveAttrs() {
const row = this.row;
const parentView = this.parentView;
const fallback = this.fallbackTemplate;
@ -107,9 +106,8 @@ const QueryRowContentComponent = Ember.Component.extend(
}
});
buffer.push(`<td>${parts.join("</td><td>")}</td>`);
this.set("rowContents", `<td>${parts.join("</td><td>")}</td>`.htmlSafe());
}
})
);
});
export default QueryRowContentComponent;

View File

@ -0,0 +1 @@
{{rowContents}}