mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 23:58:12 -05:00
REVERT: revert change from action + mut to mut (#10844)
* Revert "FIX: fixes regression where wizard dropdown couldn't update (#10838)" This reverts commite3b2fc6074. * Revert "DEV: replaces unecessary (action (mut .*)) by (mut .*) (#10822)" This reverts commitc0350dc362.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
options=(hash
|
||||
maximum=1
|
||||
)
|
||||
onChange=(fn (mut buffered.icon))
|
||||
onChange=(action (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=(fn (mut buffered.badge_type_id))
|
||||
onChange=(action (mut buffered.badge_type_id))
|
||||
isDisabled=readOnly
|
||||
}}
|
||||
</div>
|
||||
@@ -50,7 +50,7 @@
|
||||
content=badgeGroupings
|
||||
class="badge-selector"
|
||||
nameProperty="name"
|
||||
onChange=(fn (mut buffered.badge_grouping_id))
|
||||
onChange=(action (mut buffered.badge_grouping_id))
|
||||
}}
|
||||
{{d-button
|
||||
class="btn-default"
|
||||
@@ -112,7 +112,7 @@
|
||||
name="trigger"
|
||||
value=buffered.trigger
|
||||
content=badgeTriggers
|
||||
onChange=(fn (mut buffered.trigger))
|
||||
onChange=(action (mut buffered.trigger))
|
||||
disabled=readOnly
|
||||
}}
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{{combo-box
|
||||
content=fieldTypes
|
||||
value=buffered.field_type
|
||||
onChange=(fn (mut buffered.field_type))
|
||||
onChange=(action (mut buffered.field_type))
|
||||
}}
|
||||
{{/admin-form-row}}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
{{category-chooser
|
||||
value=categoryId
|
||||
class="small"
|
||||
onChange=(mut categoryId)
|
||||
onChange=(action (mut categoryId))
|
||||
}}
|
||||
</td>
|
||||
<td class="editing-controls">
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
{{combo-box
|
||||
content=permalinkTypes
|
||||
value=permalinkType
|
||||
onChange=(mut permalinkType)
|
||||
onChange=(action (mut permalinkType))
|
||||
class="permalink-type"
|
||||
}}
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
{{combo-box
|
||||
content=actionNames
|
||||
value=actionName
|
||||
onChange=(mut actionName)
|
||||
onChange=(action (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=(mut value)
|
||||
onChange=(action (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=(mut value)
|
||||
onChange=(action (mut value))
|
||||
valueProperty=setting.computedValueProperty
|
||||
nameProperty=setting.computedNameProperty
|
||||
options=(hash
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
{{combo-box
|
||||
content=model
|
||||
value=selectedBaseThemeId
|
||||
onChange=(mut selectedBaseThemeId)
|
||||
onChange=(action (mut selectedBaseThemeId))
|
||||
valueProperty="base_scheme_id"
|
||||
}}
|
||||
{{/d-modal-body}}
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
valueProperty="value"
|
||||
content=createTypes
|
||||
value=selectedType
|
||||
onChange=(mut selectedType)
|
||||
onChange=(action (mut selectedType))
|
||||
}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<div class="admin-title">
|
||||
{{period-chooser period=period onChange=(mut period)}}
|
||||
{{period-chooser period=period onChange=(action (mut period))}}
|
||||
{{combo-box
|
||||
content=searchTypeOptions
|
||||
value=searchType
|
||||
class="search-logs-filter"
|
||||
onChange=(mut searchType)
|
||||
onChange=(action (mut searchType))
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<div class="admin-title">
|
||||
{{period-chooser period=period onChange=(mut period)}}
|
||||
{{period-chooser period=period onChange=(action (mut period))}}
|
||||
{{combo-box
|
||||
content=searchTypeOptions
|
||||
value=searchType
|
||||
class="search-logs-filter"
|
||||
onChange=(mut searchType)
|
||||
onChange=(action (mut searchType))
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
filterable=true
|
||||
value=selectedBadgeId
|
||||
content=grantableBadges
|
||||
onChange=(mut selectedBadgeId)
|
||||
onChange=(action (mut selectedBadgeId))
|
||||
}}
|
||||
</div>
|
||||
<div>
|
||||
|
||||
@@ -371,7 +371,7 @@
|
||||
content=site.trustLevels
|
||||
nameProperty="detailedName"
|
||||
value=model.trustLevel.id
|
||||
onChange=(mut model.trust_level)
|
||||
onChange=(action (mut model.trust_level))
|
||||
}}
|
||||
|
||||
{{#if model.dirty}}
|
||||
@@ -537,7 +537,7 @@
|
||||
content=availableGroups
|
||||
value=customGroupIdsBuffer
|
||||
labelProperty="name"
|
||||
onChange=(fn (mut customGroupIdsBuffer))
|
||||
onChange=(action (mut customGroupIdsBuffer))
|
||||
}}
|
||||
</div>
|
||||
{{#if customGroupsDirty}}
|
||||
@@ -555,7 +555,7 @@
|
||||
content=model.customGroups
|
||||
value=model.primary_group_id
|
||||
none="admin.groups.no_primary"
|
||||
onChange=(mut model.primary_group_id)
|
||||
onChange=(action (mut model.primary_group_id))
|
||||
}}
|
||||
</div>
|
||||
{{#if primaryGroupDirty}}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
content=contentTypes
|
||||
name="content-type"
|
||||
value=model.content_type
|
||||
onChange=(mut model.content_type)
|
||||
onChange=(action (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=(mut model.categories)
|
||||
onChange=(action (mut model.categories))
|
||||
}}
|
||||
<div class="instructions">{{i18n "admin.web_hooks.categories_filter_instructions"}}</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user