mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 18:06:18 +08:00
FIX: Use one-way binding to prevent unnecessary updates in site.periods
This commit is contained in:
parent
bb67ca9d21
commit
dc292d4598
|
@ -5,7 +5,7 @@ export default DropdownSelectBoxComponent.extend({
|
|||
classNames: ["period-chooser"],
|
||||
rowComponent: "period-chooser/period-chooser-row",
|
||||
headerComponent: "period-chooser/period-chooser-header",
|
||||
content: Ember.computed.alias("site.periods"),
|
||||
content: Ember.computed.oneWay("site.periods"),
|
||||
value: Ember.computed.alias("period"),
|
||||
isHidden: Ember.computed.alias("showPeriods"),
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user