DEV: replaces unecessary (action (mut .*)) by (mut .*) (#10822)

This commit is contained in:
Joffrey JAFFEUX 2020-10-06 17:17:45 +02:00 committed by GitHub
parent 29a9ae1b50
commit c0350dc362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
50 changed files with 93 additions and 93 deletions

View File

@ -17,7 +17,7 @@
options=(hash options=(hash
maximum=1 maximum=1
) )
onChange=(action (mut buffered.icon)) onChange=(fn (mut buffered.icon))
}} }}
<p class="help">{{i18n "admin.badges.icon_help"}}</p> <p class="help">{{i18n "admin.badges.icon_help"}}</p>
@ -35,7 +35,7 @@
name="badge_type_id" name="badge_type_id"
value=buffered.badge_type_id value=buffered.badge_type_id
content=badgeTypes content=badgeTypes
onChange=(action (mut buffered.badge_type_id)) onChange=(fn (mut buffered.badge_type_id))
isDisabled=readOnly isDisabled=readOnly
}} }}
</div> </div>
@ -50,7 +50,7 @@
content=badgeGroupings content=badgeGroupings
class="badge-selector" class="badge-selector"
nameProperty="name" nameProperty="name"
onChange=(action (mut buffered.badge_grouping_id)) onChange=(fn (mut buffered.badge_grouping_id))
}} }}
{{d-button {{d-button
class="btn-default" class="btn-default"
@ -112,7 +112,7 @@
name="trigger" name="trigger"
value=buffered.trigger value=buffered.trigger
content=badgeTriggers content=badgeTriggers
onChange=(action (mut buffered.trigger)) onChange=(fn (mut buffered.trigger))
disabled=readOnly disabled=readOnly
}} }}
</div> </div>

View File

@ -3,7 +3,7 @@
{{combo-box {{combo-box
content=fieldTypes content=fieldTypes
value=buffered.field_type value=buffered.field_type
onChange=(action (mut buffered.field_type)) onChange=(fn (mut buffered.field_type))
}} }}
{{/admin-form-row}} {{/admin-form-row}}

View File

@ -16,7 +16,7 @@
{{category-chooser {{category-chooser
value=categoryId value=categoryId
class="small" class="small"
onChange=(action (mut categoryId)) onChange=(mut categoryId)
}} }}
</td> </td>
<td class="editing-controls"> <td class="editing-controls">

View File

@ -11,7 +11,7 @@
{{combo-box {{combo-box
content=permalinkTypes content=permalinkTypes
value=permalinkType value=permalinkType
onChange=(action (mut permalinkType)) onChange=(mut permalinkType)
class="permalink-type" class="permalink-type"
}} }}

View File

@ -4,7 +4,7 @@
{{combo-box {{combo-box
content=actionNames content=actionNames
value=actionName value=actionName
onChange=(action (mut actionName)) onChange=(mut actionName)
}} }}
{{d-button class="btn-default" action=(action "submit") disabled=formSubmitted label="admin.logs.screened_ips.form.add"}} {{d-button class="btn-default" action=(action "submit") disabled=formSubmitted label="admin.logs.screened_ips.form.add"}}

View File

@ -1,7 +1,7 @@
{{category-chooser {{category-chooser
value=value value=value
allowUncategorized=true allowUncategorized=true
onChange=(action (mut value)) onChange=(mut value)
}} }}
{{setting-validation-message message=validationMessage}} {{setting-validation-message message=validationMessage}}
<div class="desc">{{html-safe setting.description}}</div> <div class="desc">{{html-safe setting.description}}</div>

View File

@ -1,7 +1,7 @@
{{combo-box {{combo-box
content=setting.validValues content=setting.validValues
value=value value=value
onChange=(action (mut value)) onChange=(mut value)
valueProperty=setting.computedValueProperty valueProperty=setting.computedValueProperty
nameProperty=setting.computedNameProperty nameProperty=setting.computedNameProperty
options=(hash options=(hash

View File

@ -4,7 +4,7 @@
{{combo-box {{combo-box
content=model content=model
value=selectedBaseThemeId value=selectedBaseThemeId
onChange=(action (mut selectedBaseThemeId)) onChange=(mut selectedBaseThemeId)
valueProperty="base_scheme_id" valueProperty="base_scheme_id"
}} }}
{{/d-modal-body}} {{/d-modal-body}}

View File

@ -93,7 +93,7 @@
valueProperty="value" valueProperty="value"
content=createTypes content=createTypes
value=selectedType value=selectedType
onChange=(action (mut selectedType)) onChange=(mut selectedType)
}} }}
</div> </div>
{{/if}} {{/if}}

View File

@ -1,10 +1,10 @@
<div class="admin-title"> <div class="admin-title">
{{period-chooser period=period onChange=(action (mut period))}} {{period-chooser period=period onChange=(mut period)}}
{{combo-box {{combo-box
content=searchTypeOptions content=searchTypeOptions
value=searchType value=searchType
class="search-logs-filter" class="search-logs-filter"
onChange=(action (mut searchType)) onChange=(mut searchType)
}} }}
</div> </div>

View File

@ -1,10 +1,10 @@
<div class="admin-title"> <div class="admin-title">
{{period-chooser period=period onChange=(action (mut period))}} {{period-chooser period=period onChange=(mut period)}}
{{combo-box {{combo-box
content=searchTypeOptions content=searchTypeOptions
value=searchType value=searchType
class="search-logs-filter" class="search-logs-filter"
onChange=(action (mut searchType)) onChange=(mut searchType)
}} }}
</div> </div>

View File

@ -20,7 +20,7 @@
filterable=true filterable=true
value=selectedBadgeId value=selectedBadgeId
content=grantableBadges content=grantableBadges
onChange=(action (mut selectedBadgeId)) onChange=(mut selectedBadgeId)
}} }}
</div> </div>
<div> <div>

View File

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

View File

@ -18,7 +18,7 @@
content=contentTypes content=contentTypes
name="content-type" name="content-type"
value=model.content_type value=model.content_type
onChange=(action (mut model.content_type)) onChange=(mut model.content_type)
}} }}
</div> </div>
@ -53,7 +53,7 @@
<label>{{d-icon "circle" class="tracking"}}{{i18n "admin.web_hooks.categories_filter"}}</label> <label>{{d-icon "circle" class="tracking"}}{{i18n "admin.web_hooks.categories_filter"}}</label>
{{category-selector {{category-selector
categories=model.categories categories=model.categories
onChange=(action (mut model.categories)) onChange=(mut model.categories)
}} }}
<div class="instructions">{{i18n "admin.web_hooks.categories_filter_instructions"}}</div> <div class="instructions">{{i18n "admin.web_hooks.categories_filter_instructions"}}</div>
</div> </div>

View File

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

View File

@ -19,7 +19,7 @@
allowSubCategories=true allowSubCategories=true
allowUncategorized=false allowUncategorized=false
allowRestrictedCategories=true allowRestrictedCategories=true
onChange=(action (mut category.parent_category_id)) onChange=(fn (mut category.parent_category_id))
}} }}
</section> </section>
{{/if}} {{/if}}

View File

@ -38,7 +38,7 @@
id="category-search-priority" id="category-search-priority"
content=searchPrioritiesOptions content=searchPrioritiesOptions
value=category.search_priority value=category.search_priority
onChange=(action (mut category.search_priority)) onChange=(mut category.search_priority)
options=(hash options=(hash
placementStrategy="absolute" placementStrategy="absolute"
) )
@ -190,7 +190,7 @@
options=(hash options=(hash
none="category.sort_options.default" none="category.sort_options.default"
) )
onChange=(action (mut category.sort_order)) onChange=(mut category.sort_order)
}} }}
{{#unless isDefaultSortOrder}} {{#unless isDefaultSortOrder}}
{{combo-box {{combo-box
@ -201,7 +201,7 @@
none="category.sort_options.default" none="category.sort_options.default"
placementStrategy="absolute" placementStrategy="absolute"
) )
onChange=(action (mut category.sort_ascending)) onChange=(mut category.sort_ascending)
}} }}
{{/unless}} {{/unless}}
</div> </div>

View File

@ -6,7 +6,7 @@
everyTag=true everyTag=true
excludeSynonyms=true excludeSynonyms=true
unlimitedTagCount=true unlimitedTagCount=true
onChange=(action (mut category.allowed_tags)) onChange=(mut category.allowed_tags)
options=(hash options=(hash
filterPlaceholder="category.tags_placeholder" filterPlaceholder="category.tags_placeholder"
) )

View File

@ -13,7 +13,7 @@
{{category-chooser {{category-chooser
value=topicTimer.category_id value=topicTimer.category_id
excludeCategoryId=excludeCategoryId excludeCategoryId=excludeCategoryId
onChange=(action (mut topicTimer.category_id)) onChange=(fn (mut topicTimer.category_id))
}} }}
</div> </div>
{{/if}} {{/if}}

View File

@ -18,7 +18,7 @@
name="icon" name="icon"
value=model.flair_icon value=model.flair_icon
options=(hash maximum=1) options=(hash maximum=1)
onChange=(action (mut model.flair_icon)) onChange=(mut model.flair_icon)
}} }}
{{else if flairPreviewImage}} {{else if flairPreviewImage}}
{{image-uploader {{image-uploader

View File

@ -63,7 +63,7 @@
valueProperty="value" valueProperty="value"
content=mailboxes content=mailboxes
none="groups.manage.email.mailboxes.disabled" none="groups.manage.email.mailboxes.disabled"
onChange=(action (mut model.imap_mailbox_name))}} onChange=(mut model.imap_mailbox_name)}}
{{else}} {{else}}
{{i18n "groups.manage.email.mailboxes.none_found"}} {{i18n "groups.manage.email.mailboxes.none_found"}}
{{/if}} {{/if}}

View File

@ -10,7 +10,7 @@
content=visibilityLevelOptions content=visibilityLevelOptions
castInteger=true castInteger=true
class="groups-form-visibility-level" class="groups-form-visibility-level"
onChange=(action (mut model.visibility_level)) onChange=(mut model.visibility_level)
}} }}
<div class="control-instructions"> <div class="control-instructions">
@ -26,7 +26,7 @@
value=membersVisibilityLevel value=membersVisibilityLevel
content=visibilityLevelOptions content=visibilityLevelOptions
class="groups-form-members-visibility-level" class="groups-form-members-visibility-level"
onChange=(action (mut model.members_visibility_level)) onChange=(mut model.members_visibility_level)
}} }}
<div class="control-instructions"> <div class="control-instructions">
@ -45,7 +45,7 @@
value=mentionableLevel value=mentionableLevel
content=aliasLevelOptions content=aliasLevelOptions
class="groups-form-mentionable-level" class="groups-form-mentionable-level"
onChange=(action (mut model.mentionable_level)) onChange=(mut model.mentionable_level)
}} }}
</div> </div>
@ -58,7 +58,7 @@
value=messageableLevel value=messageableLevel
content=aliasLevelOptions content=aliasLevelOptions
class="groups-form-messageable-level" class="groups-form-messageable-level"
onChange=(action (mut model.messageable_level)) onChange=(mut model.messageable_level)
}} }}
</div> </div>

View File

@ -32,7 +32,7 @@
value=groupTrustLevel value=groupTrustLevel
content=trustLevelOptions content=trustLevelOptions
class="groups-form-grant-trust-level" class="groups-form-grant-trust-level"
onChange=(action (mut model.grant_trust_level)) onChange=(mut model.grant_trust_level)
}} }}
<label> <label>
{{input type="checkbox" {{input type="checkbox"

View File

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

View File

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

View File

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

View File

@ -75,7 +75,7 @@
{{category-chooser {{category-chooser
value=model.categoryId value=model.categoryId
tabindex="3" tabindex="3"
onChange=(action (mut model.categoryId)) onChange=(fn (mut model.categoryId))
isDisabled=disableCategoryChooser isDisabled=disableCategoryChooser
options=(hash options=(hash
scopedCategoryId=scopedCategoryId scopedCategoryId=scopedCategoryId
@ -89,7 +89,7 @@
value=model.tags value=model.tags
tabindex=4 tabindex=4
isDisabled=disableTagsChooser isDisabled=disableTagsChooser
onChange=(action (mut model.tags)) onChange=(fn (mut model.tags))
options=(hash options=(hash
categoryId=model.categoryId categoryId=model.categoryId
minimum=model.minimumRequiredTags minimum=model.minimumRequiredTags

View File

@ -59,7 +59,7 @@
value=sortOrder value=sortOrder
content=sortOrders content=sortOrders
castInteger=true castInteger=true
onChange=(action (mut sortOrder)) onChange=(mut sortOrder)
}} }}
</div> </div>
</div> </div>
@ -213,7 +213,7 @@
<div class="search-advanced-filters"> <div class="search-advanced-filters">
{{search-advanced-options {{search-advanced-options
searchTerm=(readonly searchTerm) searchTerm=(readonly searchTerm)
onChangeSearchTerm=(action (mut searchTerm)) onChangeSearchTerm=(fn (mut searchTerm))
}} }}
</div> </div>
{{/if}} {{/if}}
@ -221,8 +221,8 @@
<div class="search-advanced-filters"> <div class="search-advanced-filters">
{{search-advanced-options {{search-advanced-options
searchTerm=(readonly searchTerm) searchTerm=(readonly searchTerm)
onChangeSearchTerm=(action (mut searchTerm)) onChangeSearchTerm=(fn (mut searchTerm))
onChangeCategory=(action (mut category)) onChangeCategory=(fn (mut category))
}} }}
{{d-button {{d-button

View File

@ -10,7 +10,7 @@
{{category-selector {{category-selector
categories=model.watchingCategories categories=model.watchingCategories
blockedCategories=selectedCategories blockedCategories=selectedCategories
onChange=(action (mut model.watchingCategories)) onChange=(mut model.watchingCategories)
}} }}
<div class="control-instructions"> <div class="control-instructions">
@ -24,7 +24,7 @@
{{category-selector {{category-selector
categories=model.trackingCategories categories=model.trackingCategories
blockedCategories=selectedCategories blockedCategories=selectedCategories
onChange=(action (mut model.trackingCategories)) onChange=(mut model.trackingCategories)
}} }}
<div class="control-instructions"> <div class="control-instructions">
@ -38,7 +38,7 @@
{{category-selector {{category-selector
categories=model.watchingFirstPostCategories categories=model.watchingFirstPostCategories
blockedCategories=selectedCategories blockedCategories=selectedCategories
onChange=(action (mut model.watchingFirstPostCategories)) onChange=(mut model.watchingFirstPostCategories)
}} }}
<div class="control-instructions"> <div class="control-instructions">
@ -52,7 +52,7 @@
{{category-selector {{category-selector
categories=model.regularCategories categories=model.regularCategories
blockedCategories=selectedCategories blockedCategories=selectedCategories
onChange=(action (mut model.regularCategories)) onChange=(mut model.regularCategories)
}} }}
<div class="control-instructions"> <div class="control-instructions">
@ -66,7 +66,7 @@
{{category-selector {{category-selector
categories=model.mutedCategories categories=model.mutedCategories
blockedCategories=selectedCategories blockedCategories=selectedCategories
onChange=(action (mut model.mutedCategories)) onChange=(mut model.mutedCategories)
}} }}
<div class="control-instructions"> <div class="control-instructions">

View File

@ -21,7 +21,7 @@
value=type value=type
content=types content=types
class="groups-header-filters-type" class="groups-header-filters-type"
onChange=(action (mut type)) onChange=(mut type)
options=(hash options=(hash
clearable=true clearable=true
none="groups.index.filter" none="groups.index.filter"

View File

@ -4,7 +4,7 @@
{{plugin-outlet name="users-top" connectorTagName="div" args=(hash model=model)}} {{plugin-outlet name="users-top" connectorTagName="div" args=(hash model=model)}}
<div class="directory-controls"> <div class="directory-controls">
{{period-chooser period=period onChange=(action (mut period)) fullDay=false}} {{period-chooser period=period onChange=(mut period) fullDay=false}}
{{#if lastUpdatedAt}} {{#if lastUpdatedAt}}
<div class="directory-last-updated"> <div class="directory-last-updated">
{{i18n "directory.last_updated"}} {{i18n "directory.last_updated"}}

View File

@ -19,7 +19,7 @@
content=autoDeletePreferences content=autoDeletePreferences
value=autoDeletePreference value=autoDeletePreference
class="bookmark-option-selector" class="bookmark-option-selector"
onChange=(action (mut autoDeletePreference)) onChange=(fn (mut autoDeletePreference))
}} }}
</div> </div>

View File

@ -3,7 +3,7 @@
<p> <p>
{{category-chooser {{category-chooser
value=newCategoryId value=newCategoryId
onChange=(action (mut newCategoryId)) onChange=(mut newCategoryId)
}} }}
</p> </p>

View File

@ -5,7 +5,7 @@
</div> </div>
{{category-chooser {{category-chooser
value=publicCategoryId value=publicCategoryId
onChange=(action (mut publicCategoryId)) onChange=(mut publicCategoryId)
}} }}
{{/d-modal-body}} {{/d-modal-body}}

View File

@ -9,7 +9,7 @@
value=selectedBadgeId value=selectedBadgeId
content=grantableBadges content=grantableBadges
none="badges.none" none="badges.none"
onChange=(action (mut selectedBadgeId)) onChange=(mut selectedBadgeId)
}} }}
</p> </p>
{{/if}} {{/if}}

View File

@ -81,7 +81,7 @@
{{category-chooser {{category-chooser
value=categoryId value=categoryId
class="small" class="small"
onChange=(action (mut categoryId)) onChange=(mut categoryId)
}} }}
{{#if canAddTags}} {{#if canAddTags}}
<label>{{i18n "tagging.tags"}}</label> <label>{{i18n "tagging.tags"}}</label>

View File

@ -189,7 +189,7 @@
value=newTitleInput value=newTitleInput
content=model.availableTitles content=model.availableTitles
none="user.title.none" none="user.title.none"
onChange=(action (mut newTitleInput)) onChange=(mut newTitleInput)
}} }}
</div> </div>
</div> </div>

View File

@ -9,7 +9,7 @@
{{category-selector {{category-selector
categories=model.watchedCategories categories=model.watchedCategories
blockedCategories=selectedCategories blockedCategories=selectedCategories
onChange=(action (mut model.watchedCategories)) onChange=(mut model.watchedCategories)
}} }}
</div> </div>
<div class="instructions">{{i18n "user.watched_categories_instructions"}}</div> <div class="instructions">{{i18n "user.watched_categories_instructions"}}</div>
@ -22,7 +22,7 @@
{{category-selector {{category-selector
categories=model.trackedCategories categories=model.trackedCategories
blockedCategories=selectedCategories blockedCategories=selectedCategories
onChange=(action (mut model.trackedCategories)) onChange=(mut model.trackedCategories)
}} }}
</div> </div>
<div class="instructions">{{i18n "user.tracked_categories_instructions"}}</div> <div class="instructions">{{i18n "user.tracked_categories_instructions"}}</div>
@ -32,7 +32,7 @@
{{category-selector {{category-selector
categories=model.watchedFirstPostCategories categories=model.watchedFirstPostCategories
blockedCategories=selectedCategories blockedCategories=selectedCategories
onChange=(action (mut model.watchedFirstPostCategories)) onChange=(mut model.watchedFirstPostCategories)
}} }}
</div> </div>
<div class="instructions">{{i18n "user.watched_first_post_categories_instructions"}}</div> <div class="instructions">{{i18n "user.watched_first_post_categories_instructions"}}</div>
@ -43,7 +43,7 @@
{{category-selector {{category-selector
categories=model.regularCategories categories=model.regularCategories
blockedCategories=selectedCategories blockedCategories=selectedCategories
onChange=(action (mut model.regularCategories)) onChange=(mut model.regularCategories)
}} }}
</div> </div>
<div class="instructions">{{i18n "user.regular_categories_instructions"}}</div> <div class="instructions">{{i18n "user.regular_categories_instructions"}}</div>
@ -56,7 +56,7 @@
{{category-selector {{category-selector
categories=model.mutedCategories categories=model.mutedCategories
blockedCategories=selectedCategories blockedCategories=selectedCategories
onChange=(action (mut model.mutedCategories)) onChange=(mut model.mutedCategories)
}} }}
</div> </div>
<div class="instructions">{{i18n (if hideMutedTags "user.muted_categories_instructions" "user.muted_categories_instructions_dont_hide")}}</div> <div class="instructions">{{i18n (if hideMutedTags "user.muted_categories_instructions" "user.muted_categories_instructions_dont_hide")}}</div>

View File

@ -15,7 +15,7 @@
content=emailLevelOptions content=emailLevelOptions
value=model.user_option.email_messages_level value=model.user_option.email_messages_level
id="user-email-messages-level" id="user-email-messages-level"
onChange=(action (mut model.user_option.email_messages_level)) onChange=(mut model.user_option.email_messages_level)
}} }}
{{#if emailMessagesLevelAway}} {{#if emailMessagesLevelAway}}
<div class="instructions">{{emailFrequencyInstructions}}</div> <div class="instructions">{{emailFrequencyInstructions}}</div>
@ -29,7 +29,7 @@
content=emailLevelOptions content=emailLevelOptions
value=model.user_option.email_level value=model.user_option.email_level
id="user-email-level" id="user-email-level"
onChange=(action (mut model.user_option.email_level)) onChange=(mut model.user_option.email_level)
}} }}
{{#if emailLevelAway}} {{#if emailLevelAway}}
<div class="instructions">{{emailFrequencyInstructions}}</div> <div class="instructions">{{emailFrequencyInstructions}}</div>
@ -42,7 +42,7 @@
valueProperty="value" valueProperty="value"
content=previousRepliesOptions content=previousRepliesOptions
value=model.user_option.email_previous_replies value=model.user_option.email_previous_replies
onChange=(action (mut model.user_option.email_previous_replies)) onChange=(mut model.user_option.email_previous_replies)
}} }}
</div> </div>
{{preference-checkbox labelKey="user.email_in_reply_to" checked=model.user_option.email_in_reply_to}} {{preference-checkbox labelKey="user.email_in_reply_to" checked=model.user_option.email_in_reply_to}}
@ -61,7 +61,7 @@
filterable=true filterable=true
content=digestFrequencies content=digestFrequencies
value=model.user_option.digest_after_minutes value=model.user_option.digest_after_minutes
onChange=(action (mut model.user_option.digest_after_minutes)) onChange=(mut model.user_option.digest_after_minutes)
}} }}
</div> </div>
{{preference-checkbox labelKey="user.include_tl0_in_digests" disabled=model.user_option.mailing_list_mode checked=model.user_option.include_tl0_in_digests}} {{preference-checkbox labelKey="user.include_tl0_in_digests" disabled=model.user_option.mailing_list_mode checked=model.user_option.include_tl0_in_digests}}
@ -80,7 +80,7 @@
valueProperty="value" valueProperty="value"
content=mailingListModeOptions content=mailingListModeOptions
value=model.user_option.mailing_list_mode_frequency value=model.user_option.mailing_list_mode_frequency
onChange=(action (mut model.user_option.mailing_list_mode_frequency)) onChange=(mut model.user_option.mailing_list_mode_frequency)
}} }}
</div> </div>
{{/if}} {{/if}}

View File

@ -101,7 +101,7 @@
valueProperty="value" valueProperty="value"
content=availableLocales content=availableLocales
value=model.locale value=model.locale
onChange=(action (mut model.locale)) onChange=(fn (mut model.locale))
options=(hash options=(hash
filterable=true filterable=true
none="user.locale.default" none="user.locale.default"
@ -121,7 +121,7 @@
content=userSelectableHome content=userSelectableHome
valueProperty="value" valueProperty="value"
value=homepageId value=homepageId
onChange=(action (mut model.user_option.homepage_id)) onChange=(fn (mut model.user_option.homepage_id))
}} }}
</div> </div>
</div> </div>
@ -147,7 +147,7 @@
content=titleCountModes content=titleCountModes
value=model.user_option.title_count_mode value=model.user_option.title_count_mode
id="user-title-count-mode" id="user-title-count-mode"
onChange=(action (mut model.user_option.title_count_mode)) onChange=(fn (mut model.user_option.title_count_mode))
}} }}
</div> </div>
{{preference-checkbox labelKey="user.skip_new_user_tips.description" checked=model.user_option.skip_new_user_tips class="pref-new-user-tips"}} {{preference-checkbox labelKey="user.skip_new_user_tips.description" checked=model.user_option.skip_new_user_tips class="pref-new-user-tips"}}

View File

@ -8,7 +8,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=(mut model.user_option.new_topic_duration_minutes)
}} }}
</div> </div>
@ -18,7 +18,7 @@
valueProperty="value" valueProperty="value"
content=autoTrackDurations content=autoTrackDurations
value=model.user_option.auto_track_topics_after_msecs value=model.user_option.auto_track_topics_after_msecs
onChange=(action (mut model.user_option.auto_track_topics_after_msecs)) onChange=(mut model.user_option.auto_track_topics_after_msecs)
}} }}
</div> </div>
@ -28,7 +28,7 @@
valueProperty="value" valueProperty="value"
content=notificationLevelsForReplying content=notificationLevelsForReplying
value=model.user_option.notification_level_when_replying value=model.user_option.notification_level_when_replying
onChange=(action (mut model.user_option.notification_level_when_replying)) onChange=(mut model.user_option.notification_level_when_replying)
}} }}
</div> </div>
@ -38,7 +38,7 @@
valueProperty="value" valueProperty="value"
content=likeNotificationFrequencies content=likeNotificationFrequencies
value=model.user_option.like_notification_frequency value=model.user_option.like_notification_frequency
onChange=(action (mut model.user_option.like_notification_frequency)) onChange=(mut model.user_option.like_notification_frequency)
}} }}
</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>
{{timezone-input {{timezone-input
value=model.user_option.timezone value=model.user_option.timezone
onChange=(action (mut model.user_option.timezone)) onChange=(mut model.user_option.timezone)
class="input-xxlarge" class="input-xxlarge"
}} }}
{{d-button icon="globe" label="user.use_current_timezone" action=(action "useCurrentTimezone") }} {{d-button icon="globe" label="user.use_current_timezone" action=(action "useCurrentTimezone") }}

View File

@ -22,7 +22,7 @@
{{combo-box {{combo-box
value=filterStatus value=filterStatus
content=statuses content=statuses
onChange=(action (mut filterStatus)) onChange=(mut filterStatus)
}} }}
</div> </div>
@ -36,7 +36,7 @@
value=filterType value=filterType
content=allTypes content=allTypes
none="review.filters.type.all" none="review.filters.type.all"
onChange=(action (mut filterType)) onChange=(mut filterType)
}} }}
</div> </div>
@ -45,7 +45,7 @@
{{combo-box {{combo-box
value=filterPriority value=filterPriority
content=priorities content=priorities
onChange=(action (mut filterPriority)) onChange=(mut filterPriority)
}} }}
</div> </div>
@ -54,7 +54,7 @@
{{category-chooser {{category-chooser
none="review.filters.all_categories" none="review.filters.all_categories"
value=filterCategoryId value=filterCategoryId
onChange=(action (mut filterCategoryId)) onChange=(mut filterCategoryId)
}} }}
</div> </div>
@ -91,7 +91,7 @@
{{combo-box {{combo-box
value=filterSortOrder value=filterSortOrder
content=sortOrders content=sortOrders
onChange=(action (mut filterSortOrder)) onChange=(mut filterSortOrder)
}} }}
</div> </div>
{{/if}} {{/if}}

View File

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

View File

@ -9,7 +9,7 @@
{{/if}} {{/if}}
<div class="user-notifications-filter-select-kit"> <div class="user-notifications-filter-select-kit">
{{notifications-filter value=filter onChange=(action (mut filter))}} {{notifications-filter value=filter onChange=(fn (mut filter))}}
</div> </div>
{{#if hasFilteredNotifications}} {{#if hasFilteredNotifications}}

View File

@ -5,7 +5,7 @@
{{plugin-outlet name="users-top" connectorTagName="div" args=(hash model=model)}} {{plugin-outlet name="users-top" connectorTagName="div" args=(hash model=model)}}
<div class="directory-controls"> <div class="directory-controls">
<div class="period-controls"> <div class="period-controls">
{{period-chooser period=period onChange=(action (mut period)) fullDay=false}} {{period-chooser period=period onChange=(mut period) fullDay=false}}
{{#if lastUpdatedAt}} {{#if lastUpdatedAt}}
<div class="directory-last-updated"> <div class="directory-last-updated">
{{i18n "directory.last_updated"}} {{i18n "directory.last_updated"}}

View File

@ -16,7 +16,7 @@
value=inviteRole value=inviteRole
content=roles content=roles
nameProperty="label" nameProperty="label"
onChange=(action (mut inviteRole)) onChange=(mut inviteRole)
}} }}
<button type="button" class="wizard-btn small add-user" {{action "addUser"}}> <button type="button" class="wizard-btn small add-user" {{action "addUser"}}>

View File

@ -5,5 +5,5 @@
content=field.choices content=field.choices
nameProperty="label" nameProperty="label"
tabindex="9" tabindex="9"
onChange=(action (mut field.value)) onChange=(mut field.value)
}} }}

View File

@ -44,7 +44,7 @@
{{timezone-input {{timezone-input
options=(hash icon="globe") options=(hash icon="globe")
value=timezone value=timezone
onChange=(action (mut timezone)) onChange=(mut timezone)
}} }}
{{/unless}} {{/unless}}
</div> </div>
@ -74,7 +74,7 @@
{{timezone-input {{timezone-input
value=timezone value=timezone
options=(hash icon="globe") options=(hash icon="globe")
onChange=(action (mut timezone)) onChange=(mut timezone)
}} }}
{{/if}} {{/if}}
</div> </div>
@ -92,7 +92,7 @@
content=recurringOptions content=recurringOptions
class="recurrence-input" class="recurrence-input"
value=recurring value=recurring
onChange=(action (mut recurring)) onChange=(mut recurring)
none="discourse_local_dates.create.form.recurring_none"}} none="discourse_local_dates.create.form.recurring_none"}}
</div> </div>
</div> </div>

View File

@ -8,7 +8,7 @@
value=pollType value=pollType
valueProperty="value" valueProperty="value"
class="poll-type" class="poll-type"
onChange=(action (mut pollType)) onChange=(mut pollType)
}} }}
</div> </div>
@ -19,7 +19,7 @@
value=pollResult value=pollResult
class="poll-result" class="poll-result"
valueProperty="value" valueProperty="value"
onChange=(action (mut pollResult)) onChange=(mut pollResult)
}} }}
</div> </div>
@ -28,7 +28,7 @@
{{group-chooser {{group-chooser
content=siteGroups content=siteGroups
value=pollGroups value=pollGroups
onChange=(action (mut pollGroups)) onChange=(mut pollGroups)
labelProperty="name" labelProperty="name"
valueProperty="name"}} valueProperty="name"}}
</div> </div>
@ -41,7 +41,7 @@
content=pollChartTypes content=pollChartTypes
value=chartType value=chartType
valueProperty="value" valueProperty="value"
onChange=(action (mut chartType)) onChange=(mut chartType)
}} }}
</div> </div>
{{/unless}} {{/unless}}