DEV: Use fn+mut instead of action+mut (#26057)

One step closer to removing all `action` helper usage
This commit is contained in:
Jarek Radosz 2024-03-06 18:05:03 +01:00 committed by GitHub
parent ac083ffca6
commit 11067c73d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
61 changed files with 111 additions and 117 deletions

View File

@ -4,7 +4,7 @@
<ComboBox <ComboBox
@content={{this.fieldTypes}} @content={{this.fieldTypes}}
@value={{this.buffered.field_type}} @value={{this.buffered.field_type}}
@onChange={{action (mut this.buffered.field_type)}} @onChange={{fn (mut this.buffered.field_type)}}
/> />
</AdminFormRow> </AdminFormRow>

View File

@ -22,7 +22,7 @@
<div class="label">{{i18n "admin.embedding.category"}}</div> <div class="label">{{i18n "admin.embedding.category"}}</div>
<CategoryChooser <CategoryChooser
@value={{this.categoryId}} @value={{this.categoryId}}
@onChange={{action (mut this.categoryId)}} @onChange={{fn (mut this.categoryId)}}
class="small" class="small"
/> />
</td> </td>

View File

@ -7,7 +7,7 @@
<ComboBox <ComboBox
@content={{@model.baseColorSchemes}} @content={{@model.baseColorSchemes}}
@value={{this.selectedBaseThemeId}} @value={{this.selectedBaseThemeId}}
@onChange={{action (mut this.selectedBaseThemeId)}} @onChange={{fn (mut this.selectedBaseThemeId)}}
@valueProperty="base_scheme_id" @valueProperty="base_scheme_id"
/> />
</:body> </:body>

View File

@ -12,7 +12,7 @@
@label="admin.user.suspend_duration" @label="admin.user.suspend_duration"
@clearable={{false}} @clearable={{false}}
@input={{this.penalizeUntil}} @input={{this.penalizeUntil}}
@onChangeInput={{action (mut this.penalizeUntil)}} @onChangeInput={{fn (mut this.penalizeUntil)}}
class="suspend-until" class="suspend-until"
/> />
{{else if (eq @model.penaltyType "silence")}} {{else if (eq @model.penaltyType "silence")}}
@ -20,7 +20,7 @@
@label="admin.user.silence_duration" @label="admin.user.silence_duration"
@clearable={{false}} @clearable={{false}}
@input={{this.penalizeUntil}} @input={{this.penalizeUntil}}
@onChangeInput={{action (mut this.penalizeUntil)}} @onChangeInput={{fn (mut this.penalizeUntil)}}
class="silence-until" class="silence-until"
/> />
{{/if}} {{/if}}

View File

@ -14,7 +14,7 @@
<ComboBox <ComboBox
@content={{this.permalinkTypes}} @content={{this.permalinkTypes}}
@value={{this.permalinkType}} @value={{this.permalinkType}}
@onChange={{action (mut this.permalinkType)}} @onChange={{fn (mut this.permalinkType)}}
class="permalink-type" class="permalink-type"
/> />

View File

@ -11,7 +11,7 @@
<ComboBox <ComboBox
@content={{this.actionNames}} @content={{this.actionNames}}
@value={{this.actionName}} @value={{this.actionName}}
@onChange={{action (mut this.actionName)}} @onChange={{fn (mut this.actionName)}}
/> />
<DButton <DButton

View File

@ -1,6 +1,6 @@
<CategoryChooser <CategoryChooser
@value={{this.value}} @value={{this.value}}
@onChange={{action (mut this.value)}} @onChange={{fn (mut this.value)}}
@options={{hash allowUncategorized=true none=(eq this.setting.default "")}} @options={{hash allowUncategorized=true none=(eq this.setting.default "")}}
/> />
<SettingValidationMessage @message={{this.validationMessage}} /> <SettingValidationMessage @message={{this.validationMessage}} />

View File

@ -1,7 +1,7 @@
<ComboBox <ComboBox
@content={{this.setting.validValues}} @content={{this.setting.validValues}}
@value={{this.value}} @value={{this.value}}
@onChange={{action (mut this.value)}} @onChange={{fn (mut this.value)}}
@valueProperty={{this.setting.computedValueProperty}} @valueProperty={{this.setting.computedValueProperty}}
@nameProperty={{this.setting.computedNameProperty}} @nameProperty={{this.setting.computedNameProperty}}
@options={{hash castInteger=true allowAny=this.setting.allowsNone}} @options={{hash castInteger=true allowAny=this.setting.allowsNone}}

View File

@ -72,7 +72,7 @@
@name="icon" @name="icon"
@value={{this.buffered.icon}} @value={{this.buffered.icon}}
@options={{hash maximum=1}} @options={{hash maximum=1}}
@onChange={{action (mut this.buffered.icon)}} @onChange={{fn (mut this.buffered.icon)}}
/> />
{{/if}} {{/if}}
</div> </div>
@ -83,7 +83,7 @@
@name="badge_type_id" @name="badge_type_id"
@value={{this.buffered.badge_type_id}} @value={{this.buffered.badge_type_id}}
@content={{this.badgeTypes}} @content={{this.badgeTypes}}
@onChange={{action (mut this.buffered.badge_type_id)}} @onChange={{fn (mut this.buffered.badge_type_id)}}
@options={{hash disabled=this.readOnly}} @options={{hash disabled=this.readOnly}}
/> />
</div> </div>
@ -100,7 +100,7 @@
@content={{this.badgeGroupings}} @content={{this.badgeGroupings}}
class="badge-selector" class="badge-selector"
@nameProperty="name" @nameProperty="name"
@onChange={{action (mut this.buffered.badge_grouping_id)}} @onChange={{fn (mut this.buffered.badge_grouping_id)}}
/> />
<DButton <DButton
@action={{route-action "editGroupings"}} @action={{route-action "editGroupings"}}
@ -220,7 +220,7 @@
name="trigger" name="trigger"
@value={{this.buffered.trigger}} @value={{this.buffered.trigger}}
@content={{this.badgeTriggers}} @content={{this.badgeTriggers}}
@onChange={{action (mut this.buffered.trigger)}} @onChange={{fn (mut this.buffered.trigger)}}
@options={{hash disabled=this.readOnly}} @options={{hash disabled=this.readOnly}}
/> />
</div> </div>

View File

@ -1,12 +1,9 @@
<div class="admin-title"> <div class="admin-title">
<PeriodChooser <PeriodChooser @period={{this.period}} @onChange={{fn (mut this.period)}} />
@period={{this.period}}
@onChange={{action (mut this.period)}}
/>
<ComboBox <ComboBox
@content={{this.searchTypeOptions}} @content={{this.searchTypeOptions}}
@value={{this.searchType}} @value={{this.searchType}}
@onChange={{action (mut this.searchType)}} @onChange={{fn (mut this.searchType)}}
class="search-logs-filter" class="search-logs-filter"
/> />
</div> </div>

View File

@ -1,12 +1,9 @@
<div class="admin-title"> <div class="admin-title">
<PeriodChooser <PeriodChooser @period={{this.period}} @onChange={{fn (mut this.period)}} />
@period={{this.period}}
@onChange={{action (mut this.period)}}
/>
<ComboBox <ComboBox
@content={{this.searchTypeOptions}} @content={{this.searchTypeOptions}}
@value={{this.searchType}} @value={{this.searchType}}
@onChange={{action (mut this.searchType)}} @onChange={{fn (mut this.searchType)}}
class="search-logs-filter" class="search-logs-filter"
/> />
</div> </div>

View File

@ -22,7 +22,7 @@
<ComboBox <ComboBox
@value={{this.selectedBadgeId}} @value={{this.selectedBadgeId}}
@content={{this.availableBadges}} @content={{this.availableBadges}}
@onChange={{action (mut this.selectedBadgeId)}} @onChange={{fn (mut this.selectedBadgeId)}}
@options={{hash filterable=true}} @options={{hash filterable=true}}
/> />
</div> </div>

View File

@ -411,7 +411,7 @@
@content={{this.site.trustLevels}} @content={{this.site.trustLevels}}
@nameProperty="detailedName" @nameProperty="detailedName"
@value={{this.model.trustLevel.id}} @value={{this.model.trustLevel.id}}
@onChange={{action (mut this.model.trust_level)}} @onChange={{fn (mut this.model.trust_level)}}
/> />
{{#if this.model.dirty}} {{#if this.model.dirty}}
@ -609,7 +609,7 @@
@content={{this.availableGroups}} @content={{this.availableGroups}}
@value={{this.customGroupIdsBuffer}} @value={{this.customGroupIdsBuffer}}
@labelProperty="name" @labelProperty="name"
@onChange={{action (mut this.customGroupIdsBuffer)}} @onChange={{fn (mut this.customGroupIdsBuffer)}}
/> />
</div> </div>
{{#if this.customGroupsDirty}} {{#if this.customGroupsDirty}}
@ -630,7 +630,7 @@
<ComboBox <ComboBox
@content={{this.model.customGroups}} @content={{this.model.customGroups}}
@value={{this.model.primary_group_id}} @value={{this.model.primary_group_id}}
@onChange={{action (mut this.model.primary_group_id)}} @onChange={{fn (mut this.model.primary_group_id)}}
@options={{hash none="admin.groups.no_primary"}} @options={{hash none="admin.groups.no_primary"}}
/> />
</div> </div>

View File

@ -23,7 +23,7 @@
@content={{this.contentTypes}} @content={{this.contentTypes}}
@name="content-type" @name="content-type"
@value={{this.model.content_type}} @value={{this.model.content_type}}
@onChange={{action (mut this.model.content_type)}} @onChange={{fn (mut this.model.content_type)}}
/> />
</div> </div>
@ -43,7 +43,7 @@
<label class="subscription-choice"> <label class="subscription-choice">
<RadioButton <RadioButton
@name="subscription-choice" @name="subscription-choice"
@onChange={{action (mut this.model.wildcard_web_hook) false}} @onChange={{fn (mut this.model.wildcard_web_hook) false}}
@value={{false}} @value={{false}}
@selection={{this.model.wildcard_web_hook}} @selection={{this.model.wildcard_web_hook}}
/> />
@ -71,7 +71,7 @@
<label class="subscription-choice"> <label class="subscription-choice">
<RadioButton <RadioButton
@name="subscription-choice" @name="subscription-choice"
@onChange={{action (mut this.model.wildcard_web_hook) true}} @onChange={{fn (mut this.model.wildcard_web_hook) true}}
@value={{true}} @value={{true}}
@selection={{this.model.wildcard_web_hook}} @selection={{this.model.wildcard_web_hook}}
/> />
@ -86,7 +86,7 @@
}}</label> }}</label>
<CategorySelector <CategorySelector
@categories={{this.model.categories}} @categories={{this.model.categories}}
@onChange={{action (mut this.model.categories)}} @onChange={{fn (mut this.model.categories)}}
/> />
<div class="instructions">{{i18n <div class="instructions">{{i18n
"admin.web_hooks.categories_filter_instructions" "admin.web_hooks.categories_filter_instructions"

View File

@ -9,7 +9,7 @@
@value={{this._selectedUserBadgeId}} @value={{this._selectedUserBadgeId}}
@nameProperty="badge.name" @nameProperty="badge.name"
@content={{this.selectableUserBadges}} @content={{this.selectableUserBadges}}
@onChange={{action (mut this._selectedUserBadgeId)}} @onChange={{fn (mut this._selectedUserBadgeId)}}
/> />
</div> </div>
</div> </div>

View File

@ -3,7 +3,7 @@
<p> <p>
<CategoryChooser <CategoryChooser
@value={{this.categoryId}} @value={{this.categoryId}}
@onChange={{action (mut this.categoryId)}} @onChange={{fn (mut this.categoryId)}}
/> />
</p> </p>

View File

@ -197,7 +197,7 @@
{{#if this.composer.canEditTags}} {{#if this.composer.canEditTags}}
<MiniTagChooser <MiniTagChooser
@value={{this.composer.model.tags}} @value={{this.composer.model.tags}}
@onChange={{action (mut this.composer.model.tags)}} @onChange={{fn (mut this.composer.model.tags)}}
@options={{hash @options={{hash
disabled=this.composer.disableTagsChooser disabled=this.composer.disableTagsChooser
categoryId=this.composer.model.categoryId categoryId=this.composer.model.categoryId

View File

@ -21,7 +21,7 @@
@value={{this.category.parent_category_id}} @value={{this.category.parent_category_id}}
@allowSubCategories={{true}} @allowSubCategories={{true}}
@allowRestrictedCategories={{true}} @allowRestrictedCategories={{true}}
@onChange={{action (mut this.category.parent_category_id)}} @onChange={{fn (mut this.category.parent_category_id)}}
@options={{hash @options={{hash
allowUncategorized=false allowUncategorized=false
excludeCategoryId=this.category.id excludeCategoryId=this.category.id

View File

@ -58,7 +58,7 @@
@id="category-search-priority" @id="category-search-priority"
@content={{this.searchPrioritiesOptions}} @content={{this.searchPrioritiesOptions}}
@value={{this.category.search_priority}} @value={{this.category.search_priority}}
@onChange={{action (mut this.category.search_priority)}} @onChange={{fn (mut this.category.search_priority)}}
@options={{hash placementStrategy="absolute"}} @options={{hash placementStrategy="absolute"}}
/> />
</div> </div>
@ -267,7 +267,7 @@
@content={{this.availableSorts}} @content={{this.availableSorts}}
@value={{this.category.sort_order}} @value={{this.category.sort_order}}
@options={{hash none="category.sort_options.default"}} @options={{hash none="category.sort_options.default"}}
@onChange={{action (mut this.category.sort_order)}} @onChange={{fn (mut this.category.sort_order)}}
/> />
{{#unless this.isDefaultSortOrder}} {{#unless this.isDefaultSortOrder}}
<ComboBox <ComboBox
@ -278,7 +278,7 @@
none="category.sort_options.default" none="category.sort_options.default"
placementStrategy="absolute" placementStrategy="absolute"
}} }}
@onChange={{action (mut this.category.sort_ascending)}} @onChange={{fn (mut this.category.sort_ascending)}}
/> />
{{/unless}} {{/unless}}
</div> </div>

View File

@ -17,7 +17,7 @@
@everyTag={{true}} @everyTag={{true}}
@excludeSynonyms={{true}} @excludeSynonyms={{true}}
@unlimitedTagCount={{true}} @unlimitedTagCount={{true}}
@onChange={{action (mut this.category.allowed_tags)}} @onChange={{fn (mut this.category.allowed_tags)}}
@options={{hash filterPlaceholder="category.tags_placeholder"}} @options={{hash filterPlaceholder="category.tags_placeholder"}}
/> />
</section> </section>
@ -27,7 +27,7 @@
<TagGroupChooser <TagGroupChooser
@id="category-allowed-tag-groups" @id="category-allowed-tag-groups"
@tagGroups={{this.category.allowed_tag_groups}} @tagGroups={{this.category.allowed_tag_groups}}
@onChange={{action (mut this.category.allowed_tag_groups)}} @onChange={{fn (mut this.category.allowed_tag_groups)}}
/> />
<LinkTo @route="tagGroups" class="manage-tag-groups">{{i18n <LinkTo @route="tagGroups" class="manage-tag-groups">{{i18n
"category.manage_tag_groups_link" "category.manage_tag_groups_link"

View File

@ -12,7 +12,7 @@
<div class="control-group"> <div class="control-group">
<FormTemplateChooser <FormTemplateChooser
@value={{this.category.form_template_ids}} @value={{this.category.form_template_ids}}
@onChange={{action (mut this.category.form_template_ids)}} @onChange={{fn (mut this.category.form_template_ids)}}
class="select-category-template" class="select-category-template"
/> />

View File

@ -14,7 +14,7 @@
}}</label> }}</label>
<CategoryChooser <CategoryChooser
@value={{this.topicTimer.category_id}} @value={{this.topicTimer.category_id}}
@onChange={{action (mut this.topicTimer.category_id)}} @onChange={{fn (mut this.topicTimer.category_id)}}
@options={{hash excludeCategoryId=this.excludeCategoryId}} @options={{hash excludeCategoryId=this.excludeCategoryId}}
/> />
</div> </div>

View File

@ -10,7 +10,7 @@
@content={{this.shortcuts}} @content={{this.shortcuts}}
@clearable={{this.clearable}} @clearable={{this.clearable}}
@onChangeInput={{this.onChangeInput}} @onChangeInput={{this.onChangeInput}}
@onChange={{action (mut this.selection)}} @onChange={{fn (mut this.selection)}}
@options={{hash none="time_shortcut.select_timeframe"}} @options={{hash none="time_shortcut.select_timeframe"}}
/> />
</div> </div>

View File

@ -30,7 +30,7 @@
@name="icon" @name="icon"
@value={{this.model.flair_icon}} @value={{this.model.flair_icon}}
@options={{hash maximum=1}} @options={{hash maximum=1}}
@onChange={{action (mut this.model.flair_icon)}} @onChange={{fn (mut this.model.flair_icon)}}
/> />
{{else if this.flairPreviewImage}} {{else if this.flairPreviewImage}}
<UppyImageUploader <UppyImageUploader

View File

@ -54,7 +54,7 @@
@valueProperty="value" @valueProperty="value"
@content={{this.mailboxes}} @content={{this.mailboxes}}
@tabindex="10" @tabindex="10"
@onChange={{action (mut this.group.imap_mailbox_name)}} @onChange={{fn (mut this.group.imap_mailbox_name)}}
@options={{hash none="groups.manage.email.mailboxes.disabled"}} @options={{hash none="groups.manage.email.mailboxes.disabled"}}
/> />
{{/if}} {{/if}}

View File

@ -12,7 +12,7 @@
@valueProperty="value" @valueProperty="value"
@value={{this.model.visibility_level}} @value={{this.model.visibility_level}}
@content={{this.visibilityLevelOptions}} @content={{this.visibilityLevelOptions}}
@onChange={{action (mut this.model.visibility_level)}} @onChange={{fn (mut this.model.visibility_level)}}
@options={{hash castInteger=true}} @options={{hash castInteger=true}}
class="groups-form-visibility-level" class="groups-form-visibility-level"
/> />
@ -32,7 +32,7 @@
@valueProperty="value" @valueProperty="value"
@value={{this.membersVisibilityLevel}} @value={{this.membersVisibilityLevel}}
@content={{this.visibilityLevelOptions}} @content={{this.visibilityLevelOptions}}
@onChange={{action (mut this.model.members_visibility_level)}} @onChange={{fn (mut this.model.members_visibility_level)}}
class="groups-form-members-visibility-level" class="groups-form-members-visibility-level"
/> />
@ -57,7 +57,7 @@
@valueProperty="value" @valueProperty="value"
@value={{this.mentionableLevel}} @value={{this.mentionableLevel}}
@content={{this.aliasLevelOptions}} @content={{this.aliasLevelOptions}}
@onChange={{action (mut this.model.mentionable_level)}} @onChange={{fn (mut this.model.mentionable_level)}}
class="groups-form-mentionable-level" class="groups-form-mentionable-level"
/> />
</div> </div>
@ -70,7 +70,7 @@
@valueProperty="value" @valueProperty="value"
@value={{this.messageableLevel}} @value={{this.messageableLevel}}
@content={{this.aliasLevelOptions}} @content={{this.aliasLevelOptions}}
@onChange={{action (mut this.model.messageable_level)}} @onChange={{fn (mut this.model.messageable_level)}}
class="groups-form-messageable-level" class="groups-form-messageable-level"
/> />
</div> </div>
@ -130,7 +130,7 @@
<NotificationsButton <NotificationsButton
@value={{this.defaultNotificationLevel}} @value={{this.defaultNotificationLevel}}
@options={{hash i18nPrefix="groups.notifications"}} @options={{hash i18nPrefix="groups.notifications"}}
@onChange={{action (mut this.model.default_notification_level)}} @onChange={{fn (mut this.model.default_notification_level)}}
class="groups-form-default-notification-level" class="groups-form-default-notification-level"
/> />
</div> </div>

View File

@ -92,7 +92,7 @@
@settingName="name" @settingName="name"
@nameProperty="label" @nameProperty="label"
@valueProperty="id" @valueProperty="id"
@onChange={{action (mut this.model.associated_group_ids)}} @onChange={{fn (mut this.model.associated_group_ids)}}
class="group-form-automatic-membership-associated-groups" class="group-form-automatic-membership-associated-groups"
/> />
{{/if}} {{/if}}
@ -119,7 +119,7 @@
@valueProperty="value" @valueProperty="value"
@value={{this.groupTrustLevel}} @value={{this.groupTrustLevel}}
@content={{this.trustLevelOptions}} @content={{this.trustLevelOptions}}
@onChange={{action (mut this.model.grant_trust_level)}} @onChange={{fn (mut this.model.grant_trust_level)}}
class="groups-form-grant-trust-level" class="groups-form-grant-trust-level"
/> />
<label> <label>

View File

@ -60,7 +60,7 @@
@content={{this.allGroups}} @content={{this.allGroups}}
@value={{this.groupIds}} @value={{this.groupIds}}
@labelProperty="name" @labelProperty="name"
@onChange={{action (mut this.groupIds)}} @onChange={{fn (mut this.groupIds)}}
/> />
</div> </div>
{{/if}} {{/if}}

View File

@ -37,7 +37,7 @@
@content={{this.autoDeletePreferences}} @content={{this.autoDeletePreferences}}
@value={{this.bookmark.autoDeletePreference}} @value={{this.bookmark.autoDeletePreference}}
@id="bookmark-auto-delete-preference" @id="bookmark-auto-delete-preference"
@onChange={{action (mut this.bookmark.autoDeletePreference)}} @onChange={{fn (mut this.bookmark.autoDeletePreference)}}
class="bookmark-option-selector" class="bookmark-option-selector"
/> />
</div> </div>

View File

@ -15,7 +15,7 @@
<DatePickerPast <DatePickerPast
@value={{readonly this.date}} @value={{readonly this.date}}
@containerId="date-container" @containerId="date-container"
@onSelect={{action (mut this.date)}} @onSelect={{fn (mut this.date)}}
/> />
<Input @type="time" @value={{this.time}} /> <Input @type="time" @value={{this.time}} />
</form> </form>

View File

@ -10,7 +10,7 @@
</div> </div>
<CategoryChooser <CategoryChooser
@value={{this.publicCategoryId}} @value={{this.publicCategoryId}}
@onChange={{action (mut this.publicCategoryId)}} @onChange={{fn (mut this.publicCategoryId)}}
/> />
</:body> </:body>
<:footer> <:footer>

View File

@ -152,7 +152,7 @@
@content={{this.allGroups}} @content={{this.allGroups}}
@value={{this.buffered.groupIds}} @value={{this.buffered.groupIds}}
@labelProperty="name" @labelProperty="name"
@onChange={{action (mut this.buffered.groupIds)}} @onChange={{fn (mut this.buffered.groupIds)}}
/> />
</div> </div>
{{/if}} {{/if}}
@ -165,7 +165,7 @@
@customShortcuts={{this.timeShortcuts}} @customShortcuts={{this.timeShortcuts}}
@clearable={{true}} @clearable={{true}}
@input={{this.buffered.expires_at}} @input={{this.buffered.expires_at}}
@onChangeInput={{action (mut this.buffered.expires_at)}} @onChangeInput={{fn (mut this.buffered.expires_at)}}
/> />
</div> </div>
{{else}} {{else}}

View File

@ -46,7 +46,7 @@
@customShortcuts={{this.timeShortcuts}} @customShortcuts={{this.timeShortcuts}}
@clearable={{true}} @clearable={{true}}
@input={{@model.topic.slow_mode_enabled_until}} @input={{@model.topic.slow_mode_enabled_until}}
@onChangeInput={{action (mut @model.topic.slow_mode_enabled_until)}} @onChangeInput={{fn (mut @model.topic.slow_mode_enabled_until)}}
/> />
</div> </div>
</:body> </:body>

View File

@ -16,7 +16,7 @@
<ComboBox <ComboBox
@value={{this.selectedBadgeId}} @value={{this.selectedBadgeId}}
@content={{this.availableBadges}} @content={{this.availableBadges}}
@onChange={{action (mut this.selectedBadgeId)}} @onChange={{fn (mut this.selectedBadgeId)}}
@options={{hash filterable=true none="badges.none"}} @options={{hash filterable=true none="badges.none"}}
/> />
</p> </p>

View File

@ -22,7 +22,7 @@
@input={{readonly this.ignoredUntil}} @input={{readonly this.ignoredUntil}}
@customShortcuts={{this.timeShortcuts}} @customShortcuts={{this.timeShortcuts}}
@includeDateTime={{false}} @includeDateTime={{false}}
@onChangeInput={{action (mut this.ignoredUntil)}} @onChangeInput={{fn (mut this.ignoredUntil)}}
/> />
<p>{{i18n "user.user_notifications.ignore_duration_note"}}</p> <p>{{i18n "user.user_notifications.ignore_duration_note"}}</p>
</:body> </:body>

View File

@ -77,7 +77,7 @@
<EmailGroupUserChooser <EmailGroupUserChooser
class="participant-selector" class="participant-selector"
@value={{this.participants}} @value={{this.participants}}
@onChange={{action (mut this.participants)}} @onChange={{fn (mut this.participants)}}
/> />
{{#if this.selectedTopicId}} {{#if this.selectedTopicId}}
@ -190,7 +190,7 @@
<CategoryChooser <CategoryChooser
@value={{this.categoryId}} @value={{this.categoryId}}
class="small" class="small"
@onChange={{action (mut this.categoryId)}} @onChange={{fn (mut this.categoryId)}}
/> />
<PluginOutlet <PluginOutlet
@name="split-new-topic-category-after" @name="split-new-topic-category-after"

View File

@ -16,7 +16,7 @@
@name="reason" @name="reason"
@content={{this.configuredReasons}} @content={{this.configuredReasons}}
@value={{this.reason}} @value={{this.reason}}
@onChange={{action (mut this.reason)}} @onChange={{fn (mut this.reason)}}
class="revise-and-reject-reviewable__reason" class="revise-and-reject-reviewable__reason"
/> />
</div> </div>
@ -46,7 +46,7 @@
<DTextarea <DTextarea
@name="feedback" @name="feedback"
@value={{this.feedback}} @value={{this.feedback}}
@onChange={{action (mut this.feedback)}} @onChange={{fn (mut this.feedback)}}
class="revise-and-reject-reviewable__feedback" class="revise-and-reject-reviewable__feedback"
/> />
</div> </div>

View File

@ -31,7 +31,7 @@
}} }}
class={{@link.iconCssClass}} class={{@link.iconCssClass}}
@onlyAvailable={{true}} @onlyAvailable={{true}}
@onChange={{action (mut @link.icon)}} @onChange={{fn (mut @link.icon)}}
ariaLabel={{i18n "sidebar.sections.custom.links.icon.label"}} ariaLabel={{i18n "sidebar.sections.custom.links.icon.label"}}
/> />
{{#if @link.invalidIconMessage}} {{#if @link.invalidIconMessage}}

View File

@ -20,7 +20,7 @@
<DatePickerFuture <DatePickerFuture
@value={{this.customDate}} @value={{this.customDate}}
@defaultDate={{this.defaultCustomDate}} @defaultDate={{this.defaultCustomDate}}
@onSelect={{action (mut this.customDate)}} @onSelect={{fn (mut this.customDate)}}
@id="custom-date" @id="custom-date"
/> />
</div> </div>

View File

@ -15,7 +15,7 @@
@valueProperty={{null}} @valueProperty={{null}}
@nameProperty={{null}} @nameProperty={{null}}
@value={{this.value}} @value={{this.value}}
@onChange={{action (mut this.value)}} @onChange={{fn (mut this.value)}}
@options={{hash none=this.noneLabel}} @options={{hash none=this.noneLabel}}
/> />
<div class="instructions">{{html-safe this.field.description}}</div> <div class="instructions">{{html-safe this.field.description}}</div>

View File

@ -15,7 +15,7 @@
@valueProperty={{null}} @valueProperty={{null}}
@nameProperty={{null}} @nameProperty={{null}}
@value={{this.value}} @value={{this.value}}
@onChange={{action (mut this.value)}} @onChange={{fn (mut this.value)}}
@options={{hash none=this.noneLabel}} @options={{hash none=this.noneLabel}}
/> />
<div class="instructions">{{html-safe this.field.description}}</div> <div class="instructions">{{html-safe this.field.description}}</div>

View File

@ -11,7 +11,7 @@
<CategorySelector <CategorySelector
@categories={{@model.watchedCategories}} @categories={{@model.watchedCategories}}
@blockedCategories={{@selectedCategories}} @blockedCategories={{@selectedCategories}}
@onChange={{action (mut @model.watchedCategories)}} @onChange={{fn (mut @model.watchedCategories)}}
/> />
</div> </div>
<div class="instructions">{{i18n <div class="instructions">{{i18n
@ -28,7 +28,7 @@
<CategorySelector <CategorySelector
@categories={{@model.trackedCategories}} @categories={{@model.trackedCategories}}
@blockedCategories={{@selectedCategories}} @blockedCategories={{@selectedCategories}}
@onChange={{action (mut @model.trackedCategories)}} @onChange={{fn (mut @model.trackedCategories)}}
/> />
</div> </div>
<div class="instructions">{{i18n <div class="instructions">{{i18n
@ -43,7 +43,7 @@
<CategorySelector <CategorySelector
@categories={{@model.watchedFirstPostCategories}} @categories={{@model.watchedFirstPostCategories}}
@blockedCategories={{@selectedCategories}} @blockedCategories={{@selectedCategories}}
@onChange={{action (mut @model.watchedFirstPostCategories)}} @onChange={{fn (mut @model.watchedFirstPostCategories)}}
/> />
</div> </div>
<div class="instructions">{{i18n <div class="instructions">{{i18n
@ -58,7 +58,7 @@
<CategorySelector <CategorySelector
@categories={{@model.regularCategories}} @categories={{@model.regularCategories}}
@blockedCategories={{@selectedCategories}} @blockedCategories={{@selectedCategories}}
@onChange={{action (mut @model.regularCategories)}} @onChange={{fn (mut @model.regularCategories)}}
/> />
</div> </div>
<div class="instructions">{{i18n <div class="instructions">{{i18n
@ -77,7 +77,7 @@
<CategorySelector <CategorySelector
@categories={{@model.mutedCategories}} @categories={{@model.mutedCategories}}
@blockedCategories={{@selectedCategories}} @blockedCategories={{@selectedCategories}}
@onChange={{action (mut @model.mutedCategories)}} @onChange={{fn (mut @model.mutedCategories)}}
/> />
</div> </div>

View File

@ -5,7 +5,7 @@
@valueProperty="value" @valueProperty="value"
@content={{@considerNewTopicOptions}} @content={{@considerNewTopicOptions}}
@value={{@model.user_option.new_topic_duration_minutes}} @value={{@model.user_option.new_topic_duration_minutes}}
@onChange={{action (mut @model.user_option.new_topic_duration_minutes)}} @onChange={{fn (mut @model.user_option.new_topic_duration_minutes)}}
class="duration" class="duration"
/> />
</div> </div>

View File

@ -34,7 +34,7 @@
@id="search-type" @id="search-type"
@value={{this.search_type}} @value={{this.search_type}}
@content={{this.searchTypes}} @content={{this.searchTypes}}
@onChange={{action (mut this.search_type)}} @onChange={{fn (mut this.search_type)}}
@options={{hash castInteger=true}} @options={{hash castInteger=true}}
/> />
<DButton <DButton
@ -64,7 +64,7 @@
<div class="search-filters"> <div class="search-filters">
<SearchAdvancedOptions <SearchAdvancedOptions
@searchTerm={{readonly this.searchTerm}} @searchTerm={{readonly this.searchTerm}}
@onChangeSearchTerm={{action (mut this.searchTerm)}} @onChangeSearchTerm={{fn (mut this.searchTerm)}}
@search={{action "search" (hash collapseFilters=true)}} @search={{action "search" (hash collapseFilters=true)}}
@searchButtonDisabled={{this.searchButtonDisabled}} @searchButtonDisabled={{this.searchButtonDisabled}}
@expandFilters={{this.expandFilters}} @expandFilters={{this.expandFilters}}

View File

@ -13,7 +13,7 @@
<CategorySelector <CategorySelector
@categories={{this.model.watchingCategories}} @categories={{this.model.watchingCategories}}
@blockedCategories={{this.selectedCategories}} @blockedCategories={{this.selectedCategories}}
@onChange={{action (mut this.model.watchingCategories)}} @onChange={{fn (mut this.model.watchingCategories)}}
/> />
<div class="control-instructions"> <div class="control-instructions">
@ -28,7 +28,7 @@
<CategorySelector <CategorySelector
@categories={{this.model.trackingCategories}} @categories={{this.model.trackingCategories}}
@blockedCategories={{this.selectedCategories}} @blockedCategories={{this.selectedCategories}}
@onChange={{action (mut this.model.trackingCategories)}} @onChange={{fn (mut this.model.trackingCategories)}}
/> />
<div class="control-instructions"> <div class="control-instructions">
@ -43,7 +43,7 @@
<CategorySelector <CategorySelector
@categories={{this.model.watchingFirstPostCategories}} @categories={{this.model.watchingFirstPostCategories}}
@blockedCategories={{this.selectedCategories}} @blockedCategories={{this.selectedCategories}}
@onChange={{action (mut this.model.watchingFirstPostCategories)}} @onChange={{fn (mut this.model.watchingFirstPostCategories)}}
/> />
<div class="control-instructions"> <div class="control-instructions">
@ -60,7 +60,7 @@
<CategorySelector <CategorySelector
@categories={{this.model.regularCategories}} @categories={{this.model.regularCategories}}
@blockedCategories={{this.selectedCategories}} @blockedCategories={{this.selectedCategories}}
@onChange={{action (mut this.model.regularCategories)}} @onChange={{fn (mut this.model.regularCategories)}}
/> />
<div class="control-instructions"> <div class="control-instructions">
@ -75,7 +75,7 @@
<CategorySelector <CategorySelector
@categories={{this.model.mutedCategories}} @categories={{this.model.mutedCategories}}
@blockedCategories={{this.selectedCategories}} @blockedCategories={{this.selectedCategories}}
@onChange={{action (mut this.model.mutedCategories)}} @onChange={{fn (mut this.model.mutedCategories)}}
/> />
<div class="control-instructions"> <div class="control-instructions">

View File

@ -30,7 +30,7 @@
<ComboBox <ComboBox
@value={{this.type}} @value={{this.type}}
@content={{this.types}} @content={{this.types}}
@onChange={{action (mut this.type)}} @onChange={{fn (mut this.type)}}
@options={{hash clearable=true none="groups.index.filter"}} @options={{hash clearable=true none="groups.index.filter"}}
class="groups-header-filters-type" class="groups-header-filters-type"
/> />

View File

@ -212,7 +212,7 @@
<ComboBox <ComboBox
@value={{this.newTitleInput}} @value={{this.newTitleInput}}
@content={{this.model.availableTitles}} @content={{this.model.availableTitles}}
@onChange={{action (mut this.newTitleInput)}} @onChange={{fn (mut this.newTitleInput)}}
@options={{hash none="user.title.none"}} @options={{hash none="user.title.none"}}
/> />
</div> </div>
@ -229,7 +229,7 @@
<FlairChooser <FlairChooser
@value={{this.newFlairGroupId}} @value={{this.newFlairGroupId}}
@content={{this.model.availableFlairs}} @content={{this.model.availableFlairs}}
@onChange={{action (mut this.newFlairGroupId)}} @onChange={{fn (mut this.newFlairGroupId)}}
@options={{hash none="user.flair.none"}} @options={{hash none="user.flair.none"}}
/> />
</div> </div>

View File

@ -20,7 +20,7 @@
@content={{this.emailLevelOptions}} @content={{this.emailLevelOptions}}
@value={{this.model.user_option.email_messages_level}} @value={{this.model.user_option.email_messages_level}}
@id="user-email-messages-level" @id="user-email-messages-level"
@onChange={{action (mut this.model.user_option.email_messages_level)}} @onChange={{fn (mut this.model.user_option.email_messages_level)}}
/> />
{{#if this.emailMessagesLevelAway}} {{#if this.emailMessagesLevelAway}}
<div class="instructions">{{this.emailFrequencyInstructions}}</div> <div class="instructions">{{this.emailFrequencyInstructions}}</div>
@ -34,7 +34,7 @@
@content={{this.emailLevelOptions}} @content={{this.emailLevelOptions}}
@value={{this.model.user_option.email_level}} @value={{this.model.user_option.email_level}}
@id="user-email-level" @id="user-email-level"
@onChange={{action (mut this.model.user_option.email_level)}} @onChange={{fn (mut this.model.user_option.email_level)}}
/> />
{{#if this.emailLevelAway}} {{#if this.emailLevelAway}}
<div class="instructions">{{this.emailFrequencyInstructions}}</div> <div class="instructions">{{this.emailFrequencyInstructions}}</div>
@ -50,7 +50,7 @@
@valueProperty="value" @valueProperty="value"
@content={{this.previousRepliesOptions}} @content={{this.previousRepliesOptions}}
@value={{this.model.user_option.email_previous_replies}} @value={{this.model.user_option.email_previous_replies}}
@onChange={{action (mut this.model.user_option.email_previous_replies)}} @onChange={{fn (mut this.model.user_option.email_previous_replies)}}
/> />
</div> </div>
<PreferenceCheckbox <PreferenceCheckbox
@ -86,7 +86,7 @@
@valueProperty="value" @valueProperty="value"
@content={{this.digestFrequencies}} @content={{this.digestFrequencies}}
@value={{this.model.user_option.digest_after_minutes}} @value={{this.model.user_option.digest_after_minutes}}
@onChange={{action (mut this.model.user_option.digest_after_minutes)}} @onChange={{fn (mut this.model.user_option.digest_after_minutes)}}
@options={{hash filterable=true}} @options={{hash filterable=true}}
/> />
</div> </div>

View File

@ -139,7 +139,7 @@
@langProperty="value" @langProperty="value"
@content={{this.availableLocales}} @content={{this.availableLocales}}
@value={{this.model.locale}} @value={{this.model.locale}}
@onChange={{action (mut this.model.locale)}} @onChange={{fn (mut this.model.locale)}}
@options={{hash filterable=true none="user.locale.default"}} @options={{hash filterable=true none="user.locale.default"}}
/> />
</div> </div>
@ -157,7 +157,7 @@
@content={{this.userSelectableHome}} @content={{this.userSelectableHome}}
@valueProperty="value" @valueProperty="value"
@value={{this.homepageId}} @value={{this.homepageId}}
@onChange={{action (mut this.model.user_option.homepage_id)}} @onChange={{fn (mut this.model.user_option.homepage_id)}}
/> />
</div> </div>
</div> </div>
@ -217,7 +217,7 @@
@content={{this.titleCountModes}} @content={{this.titleCountModes}}
@value={{this.model.user_option.title_count_mode}} @value={{this.model.user_option.title_count_mode}}
@id="user-title-count-mode" @id="user-title-count-mode"
@onChange={{action (mut this.model.user_option.title_count_mode)}} @onChange={{fn (mut this.model.user_option.title_count_mode)}}
/> />
</div> </div>
<div <div

View File

@ -11,7 +11,7 @@
<label class="control-label">{{i18n "user.timezone"}}</label> <label class="control-label">{{i18n "user.timezone"}}</label>
<TimezoneInput <TimezoneInput
@value={{this.model.user_option.timezone}} @value={{this.model.user_option.timezone}}
@onChange={{action (mut this.model.user_option.timezone)}} @onChange={{fn (mut this.model.user_option.timezone)}}
class="input-xxlarge" class="input-xxlarge"
/> />
<DButton <DButton
@ -149,7 +149,7 @@
@content={{this.calendarOptions}} @content={{this.calendarOptions}}
@value={{this.model.user_option.default_calendar}} @value={{this.model.user_option.default_calendar}}
@id="user-default-calendar" @id="user-default-calendar"
@onChange={{action (mut this.model.user_option.default_calendar)}} @onChange={{fn (mut this.model.user_option.default_calendar)}}
/> />
</div> </div>
<div class="instructions"> <div class="instructions">

View File

@ -24,7 +24,7 @@
<ComboBox <ComboBox
@value={{this.filterStatus}} @value={{this.filterStatus}}
@content={{this.statuses}} @content={{this.statuses}}
@onChange={{action (mut this.filterStatus)}} @onChange={{fn (mut this.filterStatus)}}
/> />
</div> </div>
@ -48,7 +48,7 @@
<ComboBox <ComboBox
@value={{this.filterType}} @value={{this.filterType}}
@content={{this.allTypes}} @content={{this.allTypes}}
@onChange={{action (mut this.filterType)}} @onChange={{fn (mut this.filterType)}}
@options={{hash none="review.filters.type.all"}} @options={{hash none="review.filters.type.all"}}
/> />
</div> </div>
@ -60,7 +60,7 @@
<ComboBox <ComboBox
@value={{this.filterPriority}} @value={{this.filterPriority}}
@content={{this.priorities}} @content={{this.priorities}}
@onChange={{action (mut this.filterPriority)}} @onChange={{fn (mut this.filterPriority)}}
/> />
</div> </div>
@ -70,7 +70,7 @@
</label> </label>
<CategoryChooser <CategoryChooser
@value={{this.filterCategoryId}} @value={{this.filterCategoryId}}
@onChange={{action (mut this.filterCategoryId)}} @onChange={{fn (mut this.filterCategoryId)}}
@options={{hash none="review.filters.all_categories"}} @options={{hash none="review.filters.all_categories"}}
/> />
</div> </div>
@ -140,7 +140,7 @@
<ComboBox <ComboBox
@value={{this.filterSortOrder}} @value={{this.filterSortOrder}}
@content={{this.sortOrders}} @content={{this.sortOrders}}
@onChange={{action (mut this.filterSortOrder)}} @onChange={{fn (mut this.filterSortOrder)}}
/> />
</div> </div>
{{/if}} {{/if}}

View File

@ -8,7 +8,7 @@
<ComboBox <ComboBox
@value={{rst.reviewable_priority}} @value={{rst.reviewable_priority}}
@content={{this.settings.reviewable_priorities}} @content={{this.settings.reviewable_priorities}}
@onChange={{action (mut rst.reviewable_priority)}} @onChange={{fn (mut rst.reviewable_priority)}}
/> />
</div> </div>
</div> </div>

View File

@ -21,7 +21,7 @@
<div class="period-controls"> <div class="period-controls">
<PeriodChooser <PeriodChooser
@period={{this.period}} @period={{this.period}}
@onChange={{action (mut this.period)}} @onChange={{fn (mut this.period)}}
@fullDay={{false}} @fullDay={{false}}
/> />
{{#if this.lastUpdatedAt}} {{#if this.lastUpdatedAt}}

View File

@ -31,7 +31,7 @@ module("Integration | Component | date-time-input-range", function (hooks) {
this.setProperties({ state: { from: DEFAULT_DATE_TIME, to: null } }); this.setProperties({ state: { from: DEFAULT_DATE_TIME, to: null } });
await render( await render(
hbs`<DateTimeInputRange @from={{this.state.from}} @to={{this.state.to}} @onChange={{action (mut this.state)}} />` hbs`<DateTimeInputRange @from={{this.state.from}} @to={{this.state.to}} @onChange={{fn (mut this.state)}} />`
); );
assert.strictEqual(fromDateInput().value, "2019-01-29"); assert.strictEqual(fromDateInput().value, "2019-01-29");
@ -58,7 +58,7 @@ module("Integration | Component | date-time-input-range", function (hooks) {
this.setProperties({ state: { from: DEFAULT_DATE_TIME, to: null } }); this.setProperties({ state: { from: DEFAULT_DATE_TIME, to: null } });
await render( await render(
hbs`<DateTimeInputRange @from={{this.state.from}} @to={{this.state.to}} @relativeDate={{this.state.from}} @onChange={{action (mut this.state)}} />` hbs`<DateTimeInputRange @from={{this.state.from}} @to={{this.state.to}} @relativeDate={{this.state.from}} @onChange={{fn (mut this.state)}} />`
); );
await fillIn(toDateInput(), "2019-01-29"); await fillIn(toDateInput(), "2019-01-29");
@ -78,7 +78,7 @@ module("Integration | Component | date-time-input-range", function (hooks) {
}); });
await render( await render(
hbs`<DateTimeInputRange @from={{this.state.from}} @to={{this.state.to}} @onChange={{action (mut this.state)}} @timezone="Europe/Paris" />` hbs`<DateTimeInputRange @from={{this.state.from}} @to={{this.state.to}} @onChange={{fn (mut this.state)}} @timezone="Europe/Paris" />`
); );
assert.strictEqual(fromDateInput().value, "2019-01-29"); assert.strictEqual(fromDateInput().value, "2019-01-29");

View File

@ -129,7 +129,7 @@ module(
this.set("input", moment("2032-01-01 11:10")); this.set("input", moment("2032-01-01 11:10"));
await render( await render(
hbs`<FutureDateInput @input={{this.input}} @onChangeInput={{action (mut this.input)}} />` hbs`<FutureDateInput @input={{this.input}} @onChangeInput={{fn (mut this.input)}} />`
); );
await fillIn(".time-input", "11:15"); await fillIn(".time-input", "11:15");

View File

@ -52,7 +52,7 @@
<CategoryChooser <CategoryChooser
@id="new-topic-category-selector" @id="new-topic-category-selector"
@value={{this.categoryId}} @value={{this.categoryId}}
@onChange={{action (mut this.categoryId)}} @onChange={{fn (mut this.categoryId)}}
class="small" class="small"
/> />

View File

@ -70,7 +70,7 @@
@isActive={{this.emojiPickerIsActive}} @isActive={{this.emojiPickerIsActive}}
@isEditorFocused={{true}} @isEditorFocused={{true}}
@emojiSelected={{action "emojiSelected"}} @emojiSelected={{action "emojiSelected"}}
@onEmojiPickerClose={{action (mut this.emojiPickerIsActive) false}} @onEmojiPickerClose={{fn (mut this.emojiPickerIsActive) false}}
/> />
{{#unless this.emojiPickerIsActive}} {{#unless this.emojiPickerIsActive}}
@ -121,7 +121,7 @@
<ChatChannelChooser <ChatChannelChooser
@content={{this.model.chat_channels}} @content={{this.model.chat_channels}}
@value={{this.newWebhookChannelId}} @value={{this.newWebhookChannelId}}
@onChange={{action (mut this.newWebhookChannelId)}} @onChange={{fn (mut this.newWebhookChannelId)}}
/> />
<DButton <DButton
@label="chat.create" @label="chat.create"

View File

@ -72,7 +72,7 @@
@content={{this.emailFrequencyOptions}} @content={{this.emailFrequencyOptions}}
@value={{this.model.user_option.chat_email_frequency}} @value={{this.model.user_option.chat_email_frequency}}
@id="user_chat_email_frequency" @id="user_chat_email_frequency"
@onChange={{action (mut this.model.user_option.chat_email_frequency)}} @onChange={{fn (mut this.model.user_option.chat_email_frequency)}}
/> />
{{#if (eq this.model.user_option.chat_email_frequency "when_away")}} {{#if (eq this.model.user_option.chat_email_frequency "when_away")}}
<div class="control-instructions"> <div class="control-instructions">
@ -112,7 +112,7 @@
@content={{this.chatSeparateSidebarModeOptions}} @content={{this.chatSeparateSidebarModeOptions}}
@value={{this.chatSeparateSidebarMode}} @value={{this.chatSeparateSidebarMode}}
@id="user_chat_separate_sidebar_mode" @id="user_chat_separate_sidebar_mode"
@onChange={{action (mut this.model.user_option.chat_separate_sidebar_mode)}} @onChange={{fn (mut this.model.user_option.chat_separate_sidebar_mode)}}
/> />
</div> </div>

View File

@ -61,7 +61,7 @@
<TimezoneInput <TimezoneInput
@options={{hash icon="globe"}} @options={{hash icon="globe"}}
@value={{this.timezone}} @value={{this.timezone}}
@onChange={{action (mut this.timezone)}} @onChange={{fn (mut this.timezone)}}
/> />
{{/unless}} {{/unless}}
</div> </div>
@ -83,7 +83,7 @@
<TimezoneInput <TimezoneInput
@value={{this.timezone}} @value={{this.timezone}}
@options={{hash icon="globe"}} @options={{hash icon="globe"}}
@onChange={{action (mut this.timezone)}} @onChange={{fn (mut this.timezone)}}
/> />
{{/if}} {{/if}}
</div> </div>
@ -104,7 +104,7 @@
<ComboBox <ComboBox
@content={{this.recurringOptions}} @content={{this.recurringOptions}}
@value={{this.recurring}} @value={{this.recurring}}
@onChange={{action (mut this.recurring)}} @onChange={{fn (mut this.recurring)}}
@options={{hash @options={{hash
none="discourse_local_dates.create.form.recurring_none" none="discourse_local_dates.create.form.recurring_none"
}} }}

View File

@ -162,7 +162,7 @@
<GroupChooser <GroupChooser
@content={{this.siteGroups}} @content={{this.siteGroups}}
@value={{this.pollGroups}} @value={{this.pollGroups}}
@onChange={{action (mut this.pollGroups)}} @onChange={{fn (mut this.pollGroups)}}
@labelProperty="name" @labelProperty="name"
@valueProperty="name" @valueProperty="name"
/> />
@ -174,7 +174,7 @@
}}</label> }}</label>
<DateTimeInput <DateTimeInput
@date={{this.pollAutoClose}} @date={{this.pollAutoClose}}
@onChange={{action (mut this.pollAutoClose)}} @onChange={{fn (mut this.pollAutoClose)}}
@clearable={{true}} @clearable={{true}}
@useGlobalPickerContainer={{true}} @useGlobalPickerContainer={{true}}
/> />
@ -188,7 +188,7 @@
@content={{this.pollResults}} @content={{this.pollResults}}
@value={{this.pollResult}} @value={{this.pollResult}}
@valueProperty="value" @valueProperty="value"
@onChange={{action (mut this.pollResult)}} @onChange={{fn (mut this.pollResult)}}
class="poll-result" class="poll-result"
/> />
</div> </div>

View File

@ -83,7 +83,7 @@
@name="icon" @name="icon"
@value={{this.icon}} @value={{this.icon}}
@options={{hash maximum=1}} @options={{hash maximum=1}}
@onChange={{action (mut this.icon)}} @onChange={{fn (mut this.icon)}}
/> />
</Styleguide::Controls::Row> </Styleguide::Controls::Row>
<Styleguide::Controls::Row @name="With an action"> <Styleguide::Controls::Row @name="With an action">