FIX: Move default options that were in the bufferedRender function. This will fix shortcut navigation for discourse-assign (#7497)

This commit is contained in:
Roman Rizzi 2019-05-07 12:25:10 -03:00 committed by GitHub
parent c7a0baebc5
commit 0a66065774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,9 @@ export function navigateToTopic(topic, href) {
export const ListItemDefaults = { export const ListItemDefaults = {
tagName: "tr", tagName: "tr",
classNameBindings: [":topic-list-item", "unboundClassNames", "topic.visited"],
attributeBindings: ["data-topic-id"],
"data-topic-id": Ember.computed.alias("topic.id"),
@computed @computed
newDotText() { newDotText() {
@ -175,13 +178,6 @@ export default Ember.Component.extend(
ListItemDefaults, ListItemDefaults,
bufferedRender({ bufferedRender({
rerenderTriggers: ["bulkSelectEnabled", "topic.pinned"], rerenderTriggers: ["bulkSelectEnabled", "topic.pinned"],
classNameBindings: [
":topic-list-item",
"unboundClassNames",
"topic.visited"
],
attributeBindings: ["data-topic-id"],
"data-topic-id": Ember.computed.alias("topic.id"),
actions: { actions: {
toggleBookmark() { toggleBookmark() {