DEV: replaces unecessary (action (mut .*)) by (mut .*) (#10822)
This commit is contained in:
parent
29a9ae1b50
commit
c0350dc362
|
@ -17,7 +17,7 @@
|
|||
options=(hash
|
||||
maximum=1
|
||||
)
|
||||
onChange=(action (mut buffered.icon))
|
||||
onChange=(fn (mut buffered.icon))
|
||||
}}
|
||||
|
||||
<p class="help">{{i18n "admin.badges.icon_help"}}</p>
|
||||
|
@ -35,7 +35,7 @@
|
|||
name="badge_type_id"
|
||||
value=buffered.badge_type_id
|
||||
content=badgeTypes
|
||||
onChange=(action (mut buffered.badge_type_id))
|
||||
onChange=(fn (mut buffered.badge_type_id))
|
||||
isDisabled=readOnly
|
||||
}}
|
||||
</div>
|
||||
|
@ -50,7 +50,7 @@
|
|||
content=badgeGroupings
|
||||
class="badge-selector"
|
||||
nameProperty="name"
|
||||
onChange=(action (mut buffered.badge_grouping_id))
|
||||
onChange=(fn (mut buffered.badge_grouping_id))
|
||||
}}
|
||||
{{d-button
|
||||
class="btn-default"
|
||||
|
@ -112,7 +112,7 @@
|
|||
name="trigger"
|
||||
value=buffered.trigger
|
||||
content=badgeTriggers
|
||||
onChange=(action (mut buffered.trigger))
|
||||
onChange=(fn (mut buffered.trigger))
|
||||
disabled=readOnly
|
||||
}}
|
||||
</div>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{{combo-box
|
||||
content=fieldTypes
|
||||
value=buffered.field_type
|
||||
onChange=(action (mut buffered.field_type))
|
||||
onChange=(fn (mut buffered.field_type))
|
||||
}}
|
||||
{{/admin-form-row}}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
{{category-chooser
|
||||
value=categoryId
|
||||
class="small"
|
||||
onChange=(action (mut categoryId))
|
||||
onChange=(mut categoryId)
|
||||
}}
|
||||
</td>
|
||||
<td class="editing-controls">
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
{{combo-box
|
||||
content=permalinkTypes
|
||||
value=permalinkType
|
||||
onChange=(action (mut permalinkType))
|
||||
onChange=(mut permalinkType)
|
||||
class="permalink-type"
|
||||
}}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{{combo-box
|
||||
content=actionNames
|
||||
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"}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{category-chooser
|
||||
value=value
|
||||
allowUncategorized=true
|
||||
onChange=(action (mut value))
|
||||
onChange=(mut value)
|
||||
}}
|
||||
{{setting-validation-message message=validationMessage}}
|
||||
<div class="desc">{{html-safe setting.description}}</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{combo-box
|
||||
content=setting.validValues
|
||||
value=value
|
||||
onChange=(action (mut value))
|
||||
onChange=(mut value)
|
||||
valueProperty=setting.computedValueProperty
|
||||
nameProperty=setting.computedNameProperty
|
||||
options=(hash
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{{combo-box
|
||||
content=model
|
||||
value=selectedBaseThemeId
|
||||
onChange=(action (mut selectedBaseThemeId))
|
||||
onChange=(mut selectedBaseThemeId)
|
||||
valueProperty="base_scheme_id"
|
||||
}}
|
||||
{{/d-modal-body}}
|
||||
|
|
|
@ -93,7 +93,7 @@
|
|||
valueProperty="value"
|
||||
content=createTypes
|
||||
value=selectedType
|
||||
onChange=(action (mut selectedType))
|
||||
onChange=(mut selectedType)
|
||||
}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<div class="admin-title">
|
||||
{{period-chooser period=period onChange=(action (mut period))}}
|
||||
{{period-chooser period=period onChange=(mut period)}}
|
||||
{{combo-box
|
||||
content=searchTypeOptions
|
||||
value=searchType
|
||||
class="search-logs-filter"
|
||||
onChange=(action (mut searchType))
|
||||
onChange=(mut searchType)
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<div class="admin-title">
|
||||
{{period-chooser period=period onChange=(action (mut period))}}
|
||||
{{period-chooser period=period onChange=(mut period)}}
|
||||
{{combo-box
|
||||
content=searchTypeOptions
|
||||
value=searchType
|
||||
class="search-logs-filter"
|
||||
onChange=(action (mut searchType))
|
||||
onChange=(mut searchType)
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
filterable=true
|
||||
value=selectedBadgeId
|
||||
content=grantableBadges
|
||||
onChange=(action (mut selectedBadgeId))
|
||||
onChange=(mut selectedBadgeId)
|
||||
}}
|
||||
</div>
|
||||
<div>
|
||||
|
|
|
@ -371,7 +371,7 @@
|
|||
content=site.trustLevels
|
||||
nameProperty="detailedName"
|
||||
value=model.trustLevel.id
|
||||
onChange=(action (mut model.trust_level))
|
||||
onChange=(mut model.trust_level)
|
||||
}}
|
||||
|
||||
{{#if model.dirty}}
|
||||
|
@ -537,7 +537,7 @@
|
|||
content=availableGroups
|
||||
value=customGroupIdsBuffer
|
||||
labelProperty="name"
|
||||
onChange=(action (mut customGroupIdsBuffer))
|
||||
onChange=(fn (mut customGroupIdsBuffer))
|
||||
}}
|
||||
</div>
|
||||
{{#if customGroupsDirty}}
|
||||
|
@ -555,7 +555,7 @@
|
|||
content=model.customGroups
|
||||
value=model.primary_group_id
|
||||
none="admin.groups.no_primary"
|
||||
onChange=(action (mut model.primary_group_id))
|
||||
onChange=(mut model.primary_group_id)
|
||||
}}
|
||||
</div>
|
||||
{{#if primaryGroupDirty}}
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
content=contentTypes
|
||||
name="content-type"
|
||||
value=model.content_type
|
||||
onChange=(action (mut model.content_type))
|
||||
onChange=(mut model.content_type)
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
@ -53,7 +53,7 @@
|
|||
<label>{{d-icon "circle" class="tracking"}}{{i18n "admin.web_hooks.categories_filter"}}</label>
|
||||
{{category-selector
|
||||
categories=model.categories
|
||||
onChange=(action (mut model.categories))
|
||||
onChange=(mut model.categories)
|
||||
}}
|
||||
<div class="instructions">{{i18n "admin.web_hooks.categories_filter_instructions"}}</div>
|
||||
</div>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
value=selectedUserBadgeId
|
||||
nameProperty="badge.name"
|
||||
content=selectableUserBadges
|
||||
onChange=(action (mut selectedUserBadgeId))
|
||||
onChange=(fn (mut selectedUserBadgeId))
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
allowSubCategories=true
|
||||
allowUncategorized=false
|
||||
allowRestrictedCategories=true
|
||||
onChange=(action (mut category.parent_category_id))
|
||||
onChange=(fn (mut category.parent_category_id))
|
||||
}}
|
||||
</section>
|
||||
{{/if}}
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
id="category-search-priority"
|
||||
content=searchPrioritiesOptions
|
||||
value=category.search_priority
|
||||
onChange=(action (mut category.search_priority))
|
||||
onChange=(mut category.search_priority)
|
||||
options=(hash
|
||||
placementStrategy="absolute"
|
||||
)
|
||||
|
@ -190,7 +190,7 @@
|
|||
options=(hash
|
||||
none="category.sort_options.default"
|
||||
)
|
||||
onChange=(action (mut category.sort_order))
|
||||
onChange=(mut category.sort_order)
|
||||
}}
|
||||
{{#unless isDefaultSortOrder}}
|
||||
{{combo-box
|
||||
|
@ -201,7 +201,7 @@
|
|||
none="category.sort_options.default"
|
||||
placementStrategy="absolute"
|
||||
)
|
||||
onChange=(action (mut category.sort_ascending))
|
||||
onChange=(mut category.sort_ascending)
|
||||
}}
|
||||
{{/unless}}
|
||||
</div>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
everyTag=true
|
||||
excludeSynonyms=true
|
||||
unlimitedTagCount=true
|
||||
onChange=(action (mut category.allowed_tags))
|
||||
onChange=(mut category.allowed_tags)
|
||||
options=(hash
|
||||
filterPlaceholder="category.tags_placeholder"
|
||||
)
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
{{category-chooser
|
||||
value=topicTimer.category_id
|
||||
excludeCategoryId=excludeCategoryId
|
||||
onChange=(action (mut topicTimer.category_id))
|
||||
onChange=(fn (mut topicTimer.category_id))
|
||||
}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
name="icon"
|
||||
value=model.flair_icon
|
||||
options=(hash maximum=1)
|
||||
onChange=(action (mut model.flair_icon))
|
||||
onChange=(mut model.flair_icon)
|
||||
}}
|
||||
{{else if flairPreviewImage}}
|
||||
{{image-uploader
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
valueProperty="value"
|
||||
content=mailboxes
|
||||
none="groups.manage.email.mailboxes.disabled"
|
||||
onChange=(action (mut model.imap_mailbox_name))}}
|
||||
onChange=(mut model.imap_mailbox_name)}}
|
||||
{{else}}
|
||||
{{i18n "groups.manage.email.mailboxes.none_found"}}
|
||||
{{/if}}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
content=visibilityLevelOptions
|
||||
castInteger=true
|
||||
class="groups-form-visibility-level"
|
||||
onChange=(action (mut model.visibility_level))
|
||||
onChange=(mut model.visibility_level)
|
||||
}}
|
||||
|
||||
<div class="control-instructions">
|
||||
|
@ -26,7 +26,7 @@
|
|||
value=membersVisibilityLevel
|
||||
content=visibilityLevelOptions
|
||||
class="groups-form-members-visibility-level"
|
||||
onChange=(action (mut model.members_visibility_level))
|
||||
onChange=(mut model.members_visibility_level)
|
||||
}}
|
||||
|
||||
<div class="control-instructions">
|
||||
|
@ -45,7 +45,7 @@
|
|||
value=mentionableLevel
|
||||
content=aliasLevelOptions
|
||||
class="groups-form-mentionable-level"
|
||||
onChange=(action (mut model.mentionable_level))
|
||||
onChange=(mut model.mentionable_level)
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
@ -58,7 +58,7 @@
|
|||
value=messageableLevel
|
||||
content=aliasLevelOptions
|
||||
class="groups-form-messageable-level"
|
||||
onChange=(action (mut model.messageable_level))
|
||||
onChange=(mut model.messageable_level)
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
value=groupTrustLevel
|
||||
content=trustLevelOptions
|
||||
class="groups-form-grant-trust-level"
|
||||
onChange=(action (mut model.grant_trust_level))
|
||||
onChange=(mut model.grant_trust_level)
|
||||
}}
|
||||
<label>
|
||||
{{input type="checkbox"
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
content=allGroups
|
||||
value=groupIds
|
||||
labelProperty="name"
|
||||
onChange=(action (mut groupIds))}}
|
||||
onChange=(mut groupIds)}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
content=allGroups
|
||||
value=groupIds
|
||||
labelProperty="name"
|
||||
onChange=(action (mut groupIds))
|
||||
onChange=(mut groupIds)
|
||||
}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
nameProperty=null
|
||||
value=this.value
|
||||
none=this.noneLabel
|
||||
onChange=(action (mut this.value))
|
||||
onChange=(fn (mut this.value))
|
||||
}}
|
||||
<div class="instructions">{{html-safe this.field.description}}</div>
|
||||
</div>
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
{{category-chooser
|
||||
value=model.categoryId
|
||||
tabindex="3"
|
||||
onChange=(action (mut model.categoryId))
|
||||
onChange=(fn (mut model.categoryId))
|
||||
isDisabled=disableCategoryChooser
|
||||
options=(hash
|
||||
scopedCategoryId=scopedCategoryId
|
||||
|
@ -89,7 +89,7 @@
|
|||
value=model.tags
|
||||
tabindex=4
|
||||
isDisabled=disableTagsChooser
|
||||
onChange=(action (mut model.tags))
|
||||
onChange=(fn (mut model.tags))
|
||||
options=(hash
|
||||
categoryId=model.categoryId
|
||||
minimum=model.minimumRequiredTags
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
value=sortOrder
|
||||
content=sortOrders
|
||||
castInteger=true
|
||||
onChange=(action (mut sortOrder))
|
||||
onChange=(mut sortOrder)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -213,7 +213,7 @@
|
|||
<div class="search-advanced-filters">
|
||||
{{search-advanced-options
|
||||
searchTerm=(readonly searchTerm)
|
||||
onChangeSearchTerm=(action (mut searchTerm))
|
||||
onChangeSearchTerm=(fn (mut searchTerm))
|
||||
}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
@ -221,8 +221,8 @@
|
|||
<div class="search-advanced-filters">
|
||||
{{search-advanced-options
|
||||
searchTerm=(readonly searchTerm)
|
||||
onChangeSearchTerm=(action (mut searchTerm))
|
||||
onChangeCategory=(action (mut category))
|
||||
onChangeSearchTerm=(fn (mut searchTerm))
|
||||
onChangeCategory=(fn (mut category))
|
||||
}}
|
||||
|
||||
{{d-button
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
{{category-selector
|
||||
categories=model.watchingCategories
|
||||
blockedCategories=selectedCategories
|
||||
onChange=(action (mut model.watchingCategories))
|
||||
onChange=(mut model.watchingCategories)
|
||||
}}
|
||||
|
||||
<div class="control-instructions">
|
||||
|
@ -24,7 +24,7 @@
|
|||
{{category-selector
|
||||
categories=model.trackingCategories
|
||||
blockedCategories=selectedCategories
|
||||
onChange=(action (mut model.trackingCategories))
|
||||
onChange=(mut model.trackingCategories)
|
||||
}}
|
||||
|
||||
<div class="control-instructions">
|
||||
|
@ -38,7 +38,7 @@
|
|||
{{category-selector
|
||||
categories=model.watchingFirstPostCategories
|
||||
blockedCategories=selectedCategories
|
||||
onChange=(action (mut model.watchingFirstPostCategories))
|
||||
onChange=(mut model.watchingFirstPostCategories)
|
||||
}}
|
||||
|
||||
<div class="control-instructions">
|
||||
|
@ -52,7 +52,7 @@
|
|||
{{category-selector
|
||||
categories=model.regularCategories
|
||||
blockedCategories=selectedCategories
|
||||
onChange=(action (mut model.regularCategories))
|
||||
onChange=(mut model.regularCategories)
|
||||
}}
|
||||
|
||||
<div class="control-instructions">
|
||||
|
@ -66,7 +66,7 @@
|
|||
{{category-selector
|
||||
categories=model.mutedCategories
|
||||
blockedCategories=selectedCategories
|
||||
onChange=(action (mut model.mutedCategories))
|
||||
onChange=(mut model.mutedCategories)
|
||||
}}
|
||||
|
||||
<div class="control-instructions">
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
value=type
|
||||
content=types
|
||||
class="groups-header-filters-type"
|
||||
onChange=(action (mut type))
|
||||
onChange=(mut type)
|
||||
options=(hash
|
||||
clearable=true
|
||||
none="groups.index.filter"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{{plugin-outlet name="users-top" connectorTagName="div" args=(hash model=model)}}
|
||||
|
||||
<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}}
|
||||
<div class="directory-last-updated">
|
||||
{{i18n "directory.last_updated"}}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
content=autoDeletePreferences
|
||||
value=autoDeletePreference
|
||||
class="bookmark-option-selector"
|
||||
onChange=(action (mut autoDeletePreference))
|
||||
onChange=(fn (mut autoDeletePreference))
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<p>
|
||||
{{category-chooser
|
||||
value=newCategoryId
|
||||
onChange=(action (mut newCategoryId))
|
||||
onChange=(mut newCategoryId)
|
||||
}}
|
||||
</p>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
</div>
|
||||
{{category-chooser
|
||||
value=publicCategoryId
|
||||
onChange=(action (mut publicCategoryId))
|
||||
onChange=(mut publicCategoryId)
|
||||
}}
|
||||
|
||||
{{/d-modal-body}}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
value=selectedBadgeId
|
||||
content=grantableBadges
|
||||
none="badges.none"
|
||||
onChange=(action (mut selectedBadgeId))
|
||||
onChange=(mut selectedBadgeId)
|
||||
}}
|
||||
</p>
|
||||
{{/if}}
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
{{category-chooser
|
||||
value=categoryId
|
||||
class="small"
|
||||
onChange=(action (mut categoryId))
|
||||
onChange=(mut categoryId)
|
||||
}}
|
||||
{{#if canAddTags}}
|
||||
<label>{{i18n "tagging.tags"}}</label>
|
||||
|
|
|
@ -189,7 +189,7 @@
|
|||
value=newTitleInput
|
||||
content=model.availableTitles
|
||||
none="user.title.none"
|
||||
onChange=(action (mut newTitleInput))
|
||||
onChange=(mut newTitleInput)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
{{category-selector
|
||||
categories=model.watchedCategories
|
||||
blockedCategories=selectedCategories
|
||||
onChange=(action (mut model.watchedCategories))
|
||||
onChange=(mut model.watchedCategories)
|
||||
}}
|
||||
</div>
|
||||
<div class="instructions">{{i18n "user.watched_categories_instructions"}}</div>
|
||||
|
@ -22,7 +22,7 @@
|
|||
{{category-selector
|
||||
categories=model.trackedCategories
|
||||
blockedCategories=selectedCategories
|
||||
onChange=(action (mut model.trackedCategories))
|
||||
onChange=(mut model.trackedCategories)
|
||||
}}
|
||||
</div>
|
||||
<div class="instructions">{{i18n "user.tracked_categories_instructions"}}</div>
|
||||
|
@ -32,7 +32,7 @@
|
|||
{{category-selector
|
||||
categories=model.watchedFirstPostCategories
|
||||
blockedCategories=selectedCategories
|
||||
onChange=(action (mut model.watchedFirstPostCategories))
|
||||
onChange=(mut model.watchedFirstPostCategories)
|
||||
}}
|
||||
</div>
|
||||
<div class="instructions">{{i18n "user.watched_first_post_categories_instructions"}}</div>
|
||||
|
@ -43,7 +43,7 @@
|
|||
{{category-selector
|
||||
categories=model.regularCategories
|
||||
blockedCategories=selectedCategories
|
||||
onChange=(action (mut model.regularCategories))
|
||||
onChange=(mut model.regularCategories)
|
||||
}}
|
||||
</div>
|
||||
<div class="instructions">{{i18n "user.regular_categories_instructions"}}</div>
|
||||
|
@ -56,7 +56,7 @@
|
|||
{{category-selector
|
||||
categories=model.mutedCategories
|
||||
blockedCategories=selectedCategories
|
||||
onChange=(action (mut model.mutedCategories))
|
||||
onChange=(mut model.mutedCategories)
|
||||
}}
|
||||
</div>
|
||||
<div class="instructions">{{i18n (if hideMutedTags "user.muted_categories_instructions" "user.muted_categories_instructions_dont_hide")}}</div>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
content=emailLevelOptions
|
||||
value=model.user_option.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}}
|
||||
<div class="instructions">{{emailFrequencyInstructions}}</div>
|
||||
|
@ -29,7 +29,7 @@
|
|||
content=emailLevelOptions
|
||||
value=model.user_option.email_level
|
||||
id="user-email-level"
|
||||
onChange=(action (mut model.user_option.email_level))
|
||||
onChange=(mut model.user_option.email_level)
|
||||
}}
|
||||
{{#if emailLevelAway}}
|
||||
<div class="instructions">{{emailFrequencyInstructions}}</div>
|
||||
|
@ -42,7 +42,7 @@
|
|||
valueProperty="value"
|
||||
content=previousRepliesOptions
|
||||
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>
|
||||
{{preference-checkbox labelKey="user.email_in_reply_to" checked=model.user_option.email_in_reply_to}}
|
||||
|
@ -61,7 +61,7 @@
|
|||
filterable=true
|
||||
content=digestFrequencies
|
||||
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>
|
||||
{{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"
|
||||
content=mailingListModeOptions
|
||||
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>
|
||||
{{/if}}
|
||||
|
|
|
@ -101,7 +101,7 @@
|
|||
valueProperty="value"
|
||||
content=availableLocales
|
||||
value=model.locale
|
||||
onChange=(action (mut model.locale))
|
||||
onChange=(fn (mut model.locale))
|
||||
options=(hash
|
||||
filterable=true
|
||||
none="user.locale.default"
|
||||
|
@ -121,7 +121,7 @@
|
|||
content=userSelectableHome
|
||||
valueProperty="value"
|
||||
value=homepageId
|
||||
onChange=(action (mut model.user_option.homepage_id))
|
||||
onChange=(fn (mut model.user_option.homepage_id))
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -147,7 +147,7 @@
|
|||
content=titleCountModes
|
||||
value=model.user_option.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>
|
||||
{{preference-checkbox labelKey="user.skip_new_user_tips.description" checked=model.user_option.skip_new_user_tips class="pref-new-user-tips"}}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
valueProperty="value"
|
||||
content=considerNewTopicOptions
|
||||
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>
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
|||
valueProperty="value"
|
||||
content=autoTrackDurations
|
||||
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>
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
|||
valueProperty="value"
|
||||
content=notificationLevelsForReplying
|
||||
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>
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
|||
valueProperty="value"
|
||||
content=likeNotificationFrequencies
|
||||
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>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<label class="control-label">{{i18n "user.timezone"}}</label>
|
||||
{{timezone-input
|
||||
value=model.user_option.timezone
|
||||
onChange=(action (mut model.user_option.timezone))
|
||||
onChange=(mut model.user_option.timezone)
|
||||
class="input-xxlarge"
|
||||
}}
|
||||
{{d-button icon="globe" label="user.use_current_timezone" action=(action "useCurrentTimezone") }}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
{{combo-box
|
||||
value=filterStatus
|
||||
content=statuses
|
||||
onChange=(action (mut filterStatus))
|
||||
onChange=(mut filterStatus)
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
|||
value=filterType
|
||||
content=allTypes
|
||||
none="review.filters.type.all"
|
||||
onChange=(action (mut filterType))
|
||||
onChange=(mut filterType)
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
@ -45,7 +45,7 @@
|
|||
{{combo-box
|
||||
value=filterPriority
|
||||
content=priorities
|
||||
onChange=(action (mut filterPriority))
|
||||
onChange=(mut filterPriority)
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
@ -54,7 +54,7 @@
|
|||
{{category-chooser
|
||||
none="review.filters.all_categories"
|
||||
value=filterCategoryId
|
||||
onChange=(action (mut filterCategoryId))
|
||||
onChange=(mut filterCategoryId)
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
@ -91,7 +91,7 @@
|
|||
{{combo-box
|
||||
value=filterSortOrder
|
||||
content=sortOrders
|
||||
onChange=(action (mut filterSortOrder))
|
||||
onChange=(mut filterSortOrder)
|
||||
}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{{combo-box
|
||||
value=rst.reviewable_priority
|
||||
content=settings.reviewable_priorities
|
||||
onChange=(action (mut rst.reviewable_priority))
|
||||
onChange=(mut rst.reviewable_priority)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
{{/if}}
|
||||
|
||||
<div class="user-notifications-filter-select-kit">
|
||||
{{notifications-filter value=filter onChange=(action (mut filter))}}
|
||||
{{notifications-filter value=filter onChange=(fn (mut filter))}}
|
||||
</div>
|
||||
|
||||
{{#if hasFilteredNotifications}}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{{plugin-outlet name="users-top" connectorTagName="div" args=(hash model=model)}}
|
||||
<div class="directory-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}}
|
||||
<div class="directory-last-updated">
|
||||
{{i18n "directory.last_updated"}}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
value=inviteRole
|
||||
content=roles
|
||||
nameProperty="label"
|
||||
onChange=(action (mut inviteRole))
|
||||
onChange=(mut inviteRole)
|
||||
}}
|
||||
|
||||
<button type="button" class="wizard-btn small add-user" {{action "addUser"}}>
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
content=field.choices
|
||||
nameProperty="label"
|
||||
tabindex="9"
|
||||
onChange=(action (mut field.value))
|
||||
onChange=(mut field.value)
|
||||
}}
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
{{timezone-input
|
||||
options=(hash icon="globe")
|
||||
value=timezone
|
||||
onChange=(action (mut timezone))
|
||||
onChange=(mut timezone)
|
||||
}}
|
||||
{{/unless}}
|
||||
</div>
|
||||
|
@ -74,7 +74,7 @@
|
|||
{{timezone-input
|
||||
value=timezone
|
||||
options=(hash icon="globe")
|
||||
onChange=(action (mut timezone))
|
||||
onChange=(mut timezone)
|
||||
}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
@ -92,7 +92,7 @@
|
|||
content=recurringOptions
|
||||
class="recurrence-input"
|
||||
value=recurring
|
||||
onChange=(action (mut recurring))
|
||||
onChange=(mut recurring)
|
||||
none="discourse_local_dates.create.form.recurring_none"}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
value=pollType
|
||||
valueProperty="value"
|
||||
class="poll-type"
|
||||
onChange=(action (mut pollType))
|
||||
onChange=(mut pollType)
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
|||
value=pollResult
|
||||
class="poll-result"
|
||||
valueProperty="value"
|
||||
onChange=(action (mut pollResult))
|
||||
onChange=(mut pollResult)
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
|||
{{group-chooser
|
||||
content=siteGroups
|
||||
value=pollGroups
|
||||
onChange=(action (mut pollGroups))
|
||||
onChange=(mut pollGroups)
|
||||
labelProperty="name"
|
||||
valueProperty="name"}}
|
||||
</div>
|
||||
|
@ -41,7 +41,7 @@
|
|||
content=pollChartTypes
|
||||
value=chartType
|
||||
valueProperty="value"
|
||||
onChange=(action (mut chartType))
|
||||
onChange=(mut chartType)
|
||||
}}
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
|
Loading…
Reference in New Issue