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:
parent
d2ac25857f
commit
6707072ef1
|
@ -1,6 +1,5 @@
|
||||||
import { categoryLinkHTML } from "discourse/helpers/category-link";
|
import { categoryLinkHTML } from "discourse/helpers/category-link";
|
||||||
import { autoUpdatingRelativeAge } from "discourse/lib/formatter";
|
import { autoUpdatingRelativeAge } from "discourse/lib/formatter";
|
||||||
import { bufferedRender } from "discourse-common/lib/buffered-render";
|
|
||||||
import { iconHTML, convertIconClass } from "discourse-common/lib/icon-library";
|
import { iconHTML, convertIconClass } from "discourse-common/lib/icon-library";
|
||||||
|
|
||||||
function icon_or_image_replacement(str, ctx) {
|
function icon_or_image_replacement(str, ctx) {
|
||||||
|
@ -47,11 +46,11 @@ function guessUrl(t) {
|
||||||
return [dest, name];
|
return [dest, name];
|
||||||
}
|
}
|
||||||
|
|
||||||
const QueryRowContentComponent = Ember.Component.extend(
|
const QueryRowContentComponent = Ember.Component.extend({
|
||||||
bufferedRender({
|
|
||||||
tagName: "tr",
|
tagName: "tr",
|
||||||
|
rowContents: null,
|
||||||
|
|
||||||
buildBuffer(buffer) {
|
didReceiveAttrs() {
|
||||||
const row = this.row;
|
const row = this.row;
|
||||||
const parentView = this.parentView;
|
const parentView = this.parentView;
|
||||||
const fallback = this.fallbackTemplate;
|
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;
|
export default QueryRowContentComponent;
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
{{rowContents}}
|
Loading…
Reference in New Issue