mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:23:13 +08:00
DEV: Fix select-kit deprecations (#15080)
This commit is contained in:
parent
ddafa42b7e
commit
14778ba52e
|
@ -68,7 +68,9 @@
|
||||||
value=buffered.badge_type_id
|
value=buffered.badge_type_id
|
||||||
content=badgeTypes
|
content=badgeTypes
|
||||||
onChange=(action (mut buffered.badge_type_id))
|
onChange=(action (mut buffered.badge_type_id))
|
||||||
isDisabled=readOnly
|
options=(hash
|
||||||
|
disabled=readOnly
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -155,7 +157,9 @@
|
||||||
value=buffered.trigger
|
value=buffered.trigger
|
||||||
content=badgeTriggers
|
content=badgeTriggers
|
||||||
onChange=(action (mut buffered.trigger))
|
onChange=(action (mut buffered.trigger))
|
||||||
disabled=readOnly
|
options=(hash
|
||||||
|
disabled=readOnly
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{{combo-box
|
{{combo-box
|
||||||
filterable=true
|
|
||||||
valueProperty="value"
|
valueProperty="value"
|
||||||
content=groupOptions
|
content=groupOptions
|
||||||
value=groupId
|
value=groupId
|
||||||
none="admin.dashboard.reports.groups"
|
|
||||||
onChange=(action "onChange")
|
onChange=(action "onChange")
|
||||||
options=(hash
|
options=(hash
|
||||||
allowAny=filter.allow_any
|
allowAny=filter.allow_any
|
||||||
|
filterable=true
|
||||||
|
none="admin.dashboard.reports.groups"
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
{{combo-box
|
{{combo-box
|
||||||
content=filter.choices
|
content=filter.choices
|
||||||
filterable=true
|
|
||||||
allowAny=filter.allow_any
|
|
||||||
value=filter.default
|
value=filter.default
|
||||||
none="admin.dashboard.report_filter_any"
|
|
||||||
onChange=(action "onChange")
|
onChange=(action "onChange")
|
||||||
|
options=(hash
|
||||||
|
allowAny=filter.allow_any
|
||||||
|
filterable=true
|
||||||
|
none="admin.dashboard.report_filter_any"
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{{category-chooser
|
{{category-chooser
|
||||||
value=value
|
value=value
|
||||||
allowUncategorized=true
|
|
||||||
onChange=(action (mut value))
|
onChange=(action (mut value))
|
||||||
options=(hash
|
options=(hash
|
||||||
|
allowUncategorized=true
|
||||||
none=(eq setting.default "")
|
none=(eq setting.default "")
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -34,13 +34,13 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{combo-box
|
{{combo-box
|
||||||
options=(hash
|
|
||||||
allowAny=true
|
|
||||||
)
|
|
||||||
none=noneKey
|
|
||||||
valueProperty=null
|
valueProperty=null
|
||||||
nameProperty=null
|
nameProperty=null
|
||||||
value=newValue
|
value=newValue
|
||||||
content=filteredChoices
|
content=filteredChoices
|
||||||
onChange=(action "selectChoice")
|
onChange=(action "selectChoice")
|
||||||
|
options=(hash
|
||||||
|
allowAny=true
|
||||||
|
none=noneKey
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -159,10 +159,12 @@
|
||||||
<div class="setting-value">
|
<div class="setting-value">
|
||||||
{{color-palettes
|
{{color-palettes
|
||||||
content=colorSchemes
|
content=colorSchemes
|
||||||
filterable=true
|
|
||||||
forceEscape=true
|
|
||||||
value=colorSchemeId
|
value=colorSchemeId
|
||||||
icon="paint-brush"}}
|
icon="paint-brush"
|
||||||
|
options=(hash
|
||||||
|
filterable=true
|
||||||
|
)
|
||||||
|
}}
|
||||||
|
|
||||||
<div class="desc">{{i18n "admin.customize.theme.color_scheme_select"}}</div>
|
<div class="desc">{{i18n "admin.customize.theme.color_scheme_select"}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -34,8 +34,10 @@
|
||||||
{{combo-box
|
{{combo-box
|
||||||
content=userHistoryActions
|
content=userHistoryActions
|
||||||
value=filterActionId
|
value=filterActionId
|
||||||
none="admin.logs.staff_actions.all"
|
|
||||||
onChange=(action "filterActionIdChanged")
|
onChange=(action "filterActionIdChanged")
|
||||||
|
options=(hash
|
||||||
|
none="admin.logs.staff_actions.all"
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label>{{i18n "admin.badges.badge"}}</label>
|
<label>{{i18n "admin.badges.badge"}}</label>
|
||||||
{{combo-box
|
{{combo-box
|
||||||
filterable=true
|
|
||||||
value=selectedBadgeId
|
value=selectedBadgeId
|
||||||
content=grantableBadges
|
content=grantableBadges
|
||||||
onChange=(action (mut selectedBadgeId))
|
onChange=(action (mut selectedBadgeId))
|
||||||
|
options=(hash
|
||||||
|
filterable=true
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
|
|
|
@ -551,8 +551,10 @@
|
||||||
{{combo-box
|
{{combo-box
|
||||||
content=model.customGroups
|
content=model.customGroups
|
||||||
value=model.primary_group_id
|
value=model.primary_group_id
|
||||||
none="admin.groups.no_primary"
|
|
||||||
onChange=(action (mut model.primary_group_id))
|
onChange=(action (mut model.primary_group_id))
|
||||||
|
options=(hash
|
||||||
|
none="admin.groups.no_primary"
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
{{#if primaryGroupDirty}}
|
{{#if primaryGroupDirty}}
|
||||||
|
|
|
@ -15,10 +15,10 @@
|
||||||
value=category.parent_category_id
|
value=category.parent_category_id
|
||||||
categories=parentCategories
|
categories=parentCategories
|
||||||
allowSubCategories=true
|
allowSubCategories=true
|
||||||
allowUncategorized=false
|
|
||||||
allowRestrictedCategories=true
|
allowRestrictedCategories=true
|
||||||
onChange=(action (mut category.parent_category_id))
|
onChange=(action (mut category.parent_category_id))
|
||||||
options=(hash
|
options=(hash
|
||||||
|
allowUncategorized=false
|
||||||
excludeCategoryId=category.id
|
excludeCategoryId=category.id
|
||||||
none=true
|
none=true
|
||||||
)
|
)
|
||||||
|
|
|
@ -12,8 +12,10 @@
|
||||||
<label class="control-label">{{i18n "topic.topic_status_update.publish_to"}}</label>
|
<label class="control-label">{{i18n "topic.topic_status_update.publish_to"}}</label>
|
||||||
{{category-chooser
|
{{category-chooser
|
||||||
value=topicTimer.category_id
|
value=topicTimer.category_id
|
||||||
excludeCategoryId=excludeCategoryId
|
|
||||||
onChange=(action (mut topicTimer.category_id))
|
onChange=(action (mut topicTimer.category_id))
|
||||||
|
options=(hash
|
||||||
|
excludeCategoryId=excludeCategoryId
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -28,9 +28,11 @@
|
||||||
value=group.imap_mailbox_name
|
value=group.imap_mailbox_name
|
||||||
valueProperty="value"
|
valueProperty="value"
|
||||||
content=mailboxes
|
content=mailboxes
|
||||||
none="groups.manage.email.mailboxes.disabled"
|
|
||||||
tabindex="10"
|
tabindex="10"
|
||||||
onChange=(action (mut group.imap_mailbox_name))
|
onChange=(action (mut group.imap_mailbox_name))
|
||||||
|
options=(hash
|
||||||
|
none="groups.manage.email.mailboxes.disabled"
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
{{dropdown-select-box
|
{{dropdown-select-box
|
||||||
class="reviewable-action-dropdown"
|
class="reviewable-action-dropdown"
|
||||||
nameProperty="label"
|
nameProperty="label"
|
||||||
title=bundle.label
|
|
||||||
content=bundle.actions
|
content=bundle.actions
|
||||||
onChange=(action "performById")
|
onChange=(action "performById")
|
||||||
options=(hash
|
options=(hash
|
||||||
icon=bundle.icon
|
icon=bundle.icon
|
||||||
disabled=reviewableUpdating
|
disabled=reviewableUpdating
|
||||||
placement=placement
|
placement=placement
|
||||||
|
translatedNone=bundle.label
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
@ -23,11 +23,11 @@
|
||||||
{{tag-chooser
|
{{tag-chooser
|
||||||
id="search-with-tags"
|
id="search-with-tags"
|
||||||
tags=searchedTerms.tags
|
tags=searchedTerms.tags
|
||||||
allowCreate=false
|
|
||||||
everyTag=true
|
everyTag=true
|
||||||
unlimitedTagCount=true
|
unlimitedTagCount=true
|
||||||
onChange=(action "onChangeSearchTermForTags")
|
onChange=(action "onChangeSearchTermForTags")
|
||||||
options=(hash
|
options=(hash
|
||||||
|
allowAny=false
|
||||||
headerAriaLabel=(i18n "search.advanced.with_tags.aria_label")
|
headerAriaLabel=(i18n "search.advanced.with_tags.aria_label")
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
{{tag-chooser
|
{{tag-chooser
|
||||||
tags=buffered.tag_names
|
tags=buffered.tag_names
|
||||||
everyTag=true
|
everyTag=true
|
||||||
allowCreate=true
|
|
||||||
unlimitedTagCount=true
|
unlimitedTagCount=true
|
||||||
excludeSynonyms=true
|
excludeSynonyms=true
|
||||||
options=(hash
|
options=(hash
|
||||||
|
allowAny=true
|
||||||
filterPlaceholder="tagging.groups.tags_placeholder"
|
filterPlaceholder="tagging.groups.tags_placeholder"
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
|
@ -23,11 +23,11 @@
|
||||||
{{tag-chooser
|
{{tag-chooser
|
||||||
tags=buffered.parent_tag_name
|
tags=buffered.parent_tag_name
|
||||||
everyTag=true
|
everyTag=true
|
||||||
maximum=1
|
|
||||||
allowCreate=true
|
|
||||||
excludeSynonyms=true
|
excludeSynonyms=true
|
||||||
options=(hash
|
options=(hash
|
||||||
|
allowAny=true
|
||||||
filterPlaceholder="tagging.groups.parent_tag_placeholder"
|
filterPlaceholder="tagging.groups.parent_tag_placeholder"
|
||||||
|
maximum=1
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -12,8 +12,10 @@
|
||||||
valueProperty=null
|
valueProperty=null
|
||||||
nameProperty=null
|
nameProperty=null
|
||||||
value=this.value
|
value=this.value
|
||||||
none=this.noneLabel
|
|
||||||
onChange=(action (mut this.value))
|
onChange=(action (mut this.value))
|
||||||
|
options=(hash
|
||||||
|
none=this.noneLabel
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
<div class="instructions">{{html-safe this.field.description}}</div>
|
<div class="instructions">{{html-safe this.field.description}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -12,8 +12,10 @@
|
||||||
valueProperty=null
|
valueProperty=null
|
||||||
nameProperty=null
|
nameProperty=null
|
||||||
value=this.value
|
value=this.value
|
||||||
none=this.noneLabel
|
|
||||||
onChange=(action (mut this.value))
|
onChange=(action (mut this.value))
|
||||||
|
options=(hash
|
||||||
|
none=this.noneLabel
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
<div class="instructions">{{html-safe this.field.description}}</div>
|
<div class="instructions">{{html-safe this.field.description}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -118,8 +118,8 @@
|
||||||
{{category-chooser
|
{{category-chooser
|
||||||
value=model.categoryId
|
value=model.categoryId
|
||||||
onChange=(action (mut model.categoryId))
|
onChange=(action (mut model.categoryId))
|
||||||
isDisabled=disableCategoryChooser
|
|
||||||
options=(hash
|
options=(hash
|
||||||
|
disabled=disableCategoryChooser
|
||||||
scopedCategoryId=scopedCategoryId
|
scopedCategoryId=scopedCategoryId
|
||||||
prioritizedCategoryId=prioritizedCategoryId
|
prioritizedCategoryId=prioritizedCategoryId
|
||||||
)
|
)
|
||||||
|
@ -131,9 +131,9 @@
|
||||||
{{#if canEditTags}}
|
{{#if canEditTags}}
|
||||||
{{mini-tag-chooser
|
{{mini-tag-chooser
|
||||||
value=model.tags
|
value=model.tags
|
||||||
isDisabled=disableTagsChooser
|
|
||||||
onChange=(action (mut model.tags))
|
onChange=(action (mut model.tags))
|
||||||
options=(hash
|
options=(hash
|
||||||
|
disabled=disableTagsChooser
|
||||||
categoryId=model.categoryId
|
categoryId=model.categoryId
|
||||||
minimum=model.minimumRequiredTags
|
minimum=model.minimumRequiredTags
|
||||||
)
|
)
|
||||||
|
|
|
@ -13,9 +13,11 @@
|
||||||
{{tag-chooser
|
{{tag-chooser
|
||||||
tags=model.watching_tags
|
tags=model.watching_tags
|
||||||
blacklist=selectedTags
|
blacklist=selectedTags
|
||||||
allowCreate=false
|
|
||||||
everyTag=true
|
everyTag=true
|
||||||
unlimitedTagCount=true
|
unlimitedTagCount=true
|
||||||
|
options=(hash
|
||||||
|
allowAny=false
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
|
|
||||||
<div class="control-instructions">
|
<div class="control-instructions">
|
||||||
|
@ -29,9 +31,11 @@
|
||||||
{{tag-chooser
|
{{tag-chooser
|
||||||
tags=model.tracking_tags
|
tags=model.tracking_tags
|
||||||
blacklist=selectedTags
|
blacklist=selectedTags
|
||||||
allowCreate=false
|
|
||||||
everyTag=true
|
everyTag=true
|
||||||
unlimitedTagCount=true
|
unlimitedTagCount=true
|
||||||
|
options=(hash
|
||||||
|
allowAny=false
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
|
|
||||||
<div class="control-instructions">
|
<div class="control-instructions">
|
||||||
|
@ -45,9 +49,11 @@
|
||||||
{{tag-chooser
|
{{tag-chooser
|
||||||
tags=model.watching_first_post_tags
|
tags=model.watching_first_post_tags
|
||||||
blacklist=selectedTags
|
blacklist=selectedTags
|
||||||
allowCreate=false
|
|
||||||
everyTag=true
|
everyTag=true
|
||||||
unlimitedTagCount=true
|
unlimitedTagCount=true
|
||||||
|
options=(hash
|
||||||
|
allowAny=false
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
|
|
||||||
<div class="control-instructions">
|
<div class="control-instructions">
|
||||||
|
@ -61,9 +67,11 @@
|
||||||
{{tag-chooser
|
{{tag-chooser
|
||||||
tags=model.regular_tags
|
tags=model.regular_tags
|
||||||
blacklist=selectedTags
|
blacklist=selectedTags
|
||||||
allowCreate=false
|
|
||||||
everyTag=true
|
everyTag=true
|
||||||
unlimitedTagCount=true
|
unlimitedTagCount=true
|
||||||
|
options=(hash
|
||||||
|
allowAny=false
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
|
|
||||||
<div class="control-instructions">
|
<div class="control-instructions">
|
||||||
|
@ -77,9 +85,11 @@
|
||||||
{{tag-chooser
|
{{tag-chooser
|
||||||
tags=model.muted_tags
|
tags=model.muted_tags
|
||||||
blacklist=selectedTags
|
blacklist=selectedTags
|
||||||
allowCreate=false
|
|
||||||
everyTag=true
|
everyTag=true
|
||||||
unlimitedTagCount=true
|
unlimitedTagCount=true
|
||||||
|
options=(hash
|
||||||
|
allowAny=false
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
|
|
||||||
<div class="control-instructions">
|
<div class="control-instructions">
|
||||||
|
|
|
@ -5,11 +5,13 @@
|
||||||
{{else}}
|
{{else}}
|
||||||
<p>
|
<p>
|
||||||
{{combo-box
|
{{combo-box
|
||||||
filterable=true
|
|
||||||
value=selectedBadgeId
|
value=selectedBadgeId
|
||||||
content=grantableBadges
|
content=grantableBadges
|
||||||
none="badges.none"
|
|
||||||
onChange=(action (mut selectedBadgeId))
|
onChange=(action (mut selectedBadgeId))
|
||||||
|
options=(hash
|
||||||
|
filterable=true
|
||||||
|
none="badges.none"
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</p>
|
</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
{{#if canTagMessages}}
|
{{#if canTagMessages}}
|
||||||
<label>{{i18n "tagging.tags"}}</label>
|
<label>{{i18n "tagging.tags"}}</label>
|
||||||
{{tag-chooser tags=tags filterable=true}}
|
{{tag-chooser tags=tags}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</form>
|
</form>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
}}
|
}}
|
||||||
{{#if canAddTags}}
|
{{#if canAddTags}}
|
||||||
<label>{{i18n "tagging.tags"}}</label>
|
<label>{{i18n "tagging.tags"}}</label>
|
||||||
{{tag-chooser tags=tags filterable=true categoryId=categoryId}}
|
{{tag-chooser tags=tags categoryId=categoryId}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</form>
|
</form>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
|
|
||||||
{{#if canTagMessages}}
|
{{#if canTagMessages}}
|
||||||
<label>{{i18n "tagging.tags"}}</label>
|
<label>{{i18n "tagging.tags"}}</label>
|
||||||
{{tag-chooser tags=tags filterable=true}}
|
{{tag-chooser tags=tags}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</form>
|
</form>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -154,8 +154,10 @@
|
||||||
{{combo-box
|
{{combo-box
|
||||||
value=newTitleInput
|
value=newTitleInput
|
||||||
content=model.availableTitles
|
content=model.availableTitles
|
||||||
none="user.title.none"
|
|
||||||
onChange=(action (mut newTitleInput))
|
onChange=(action (mut newTitleInput))
|
||||||
|
options=(hash
|
||||||
|
none="user.title.none"
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="instructions">
|
<div class="instructions">
|
||||||
|
@ -171,8 +173,10 @@
|
||||||
{{flair-chooser
|
{{flair-chooser
|
||||||
value=newFlairGroupId
|
value=newFlairGroupId
|
||||||
content=model.availableFlairs
|
content=model.availableFlairs
|
||||||
none="user.flair.none"
|
|
||||||
onChange=(action (mut newFlairGroupId))
|
onChange=(action (mut newFlairGroupId))
|
||||||
|
options=(hash
|
||||||
|
none="user.flair.none"
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="instructions">
|
<div class="instructions">
|
||||||
|
@ -188,7 +192,10 @@
|
||||||
{{combo-box
|
{{combo-box
|
||||||
value=newPrimaryGroupInput
|
value=newPrimaryGroupInput
|
||||||
content=model.filteredGroups
|
content=model.filteredGroups
|
||||||
none="user.primary_group.none"}}
|
options=(hash
|
||||||
|
none="user.primary_group.none"
|
||||||
|
)
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -58,10 +58,12 @@
|
||||||
<div class="controls controls-dropdown">
|
<div class="controls controls-dropdown">
|
||||||
{{combo-box
|
{{combo-box
|
||||||
valueProperty="value"
|
valueProperty="value"
|
||||||
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=(action (mut model.user_option.digest_after_minutes))
|
||||||
|
options=(hash
|
||||||
|
filterable=true
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</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}}
|
||||||
|
|
|
@ -7,9 +7,11 @@
|
||||||
{{tag-chooser
|
{{tag-chooser
|
||||||
tags=model.watched_tags
|
tags=model.watched_tags
|
||||||
blockedTags=selectedTags
|
blockedTags=selectedTags
|
||||||
allowCreate=false
|
|
||||||
everyTag=true
|
everyTag=true
|
||||||
unlimitedTagCount=true
|
unlimitedTagCount=true
|
||||||
|
options=(hash
|
||||||
|
allowAny=false
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -20,9 +22,12 @@
|
||||||
{{tag-chooser
|
{{tag-chooser
|
||||||
tags=model.tracked_tags
|
tags=model.tracked_tags
|
||||||
blockedTags=selectedTags
|
blockedTags=selectedTags
|
||||||
allowCreate=false
|
|
||||||
everyTag=true
|
everyTag=true
|
||||||
unlimitedTagCount=true}}
|
unlimitedTagCount=true
|
||||||
|
options=(hash
|
||||||
|
allowAny=false
|
||||||
|
)
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="instructions">{{i18n "user.tracked_tags_instructions"}}</div>
|
<div class="instructions">{{i18n "user.tracked_tags_instructions"}}</div>
|
||||||
|
@ -32,9 +37,12 @@
|
||||||
{{tag-chooser
|
{{tag-chooser
|
||||||
tags=model.watching_first_post_tags
|
tags=model.watching_first_post_tags
|
||||||
blockedTags=selectedTags
|
blockedTags=selectedTags
|
||||||
allowCreate=false
|
|
||||||
everyTag=true
|
everyTag=true
|
||||||
unlimitedTagCount=true}}
|
unlimitedTagCount=true
|
||||||
|
options=(hash
|
||||||
|
allowAny=false
|
||||||
|
)
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="instructions">
|
<div class="instructions">
|
||||||
|
@ -46,9 +54,12 @@
|
||||||
{{tag-chooser
|
{{tag-chooser
|
||||||
tags=model.muted_tags
|
tags=model.muted_tags
|
||||||
blockedTags=selectedTags
|
blockedTags=selectedTags
|
||||||
allowCreate=false
|
|
||||||
everyTag=true
|
everyTag=true
|
||||||
unlimitedTagCount=true}}
|
unlimitedTagCount=true
|
||||||
|
options=(hash
|
||||||
|
allowAny=false
|
||||||
|
)
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="instructions">{{i18n "user.muted_tags_instructions"}}</div>
|
<div class="instructions">{{i18n "user.muted_tags_instructions"}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -35,8 +35,10 @@
|
||||||
{{combo-box
|
{{combo-box
|
||||||
value=filterType
|
value=filterType
|
||||||
content=allTypes
|
content=allTypes
|
||||||
none="review.filters.type.all"
|
|
||||||
onChange=(action (mut filterType))
|
onChange=(action (mut filterType))
|
||||||
|
options=(hash
|
||||||
|
none="review.filters.type.all"
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -52,9 +54,11 @@
|
||||||
<div class="reviewable-filter">
|
<div class="reviewable-filter">
|
||||||
<label class="filter-label">{{i18n "review.filters.category"}}</label>
|
<label class="filter-label">{{i18n "review.filters.category"}}</label>
|
||||||
{{category-chooser
|
{{category-chooser
|
||||||
none="review.filters.all_categories"
|
|
||||||
value=filterCategoryId
|
value=filterCategoryId
|
||||||
onChange=(action (mut filterCategoryId))
|
onChange=(action (mut filterCategoryId))
|
||||||
|
options=(hash
|
||||||
|
none="review.filters.all_categories"
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,7 @@ discourseModule(
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
componentTest("with allowUncategorized=null rootNone=true", {
|
componentTest("with allowUncategorized=null none=true", {
|
||||||
template: hbs`
|
template: hbs`
|
||||||
{{category-chooser
|
{{category-chooser
|
||||||
value=value
|
value=value
|
||||||
|
|
|
@ -1118,6 +1118,7 @@ export default Component.extend(
|
||||||
none: "options.none",
|
none: "options.none",
|
||||||
rootNone: "options.none",
|
rootNone: "options.none",
|
||||||
disabled: "options.disabled",
|
disabled: "options.disabled",
|
||||||
|
isDisabled: "options.disabled",
|
||||||
rootNoneLabel: "options.none",
|
rootNoneLabel: "options.none",
|
||||||
showFullTitle: "options.showFullTitle",
|
showFullTitle: "options.showFullTitle",
|
||||||
title: "options.translatedNone",
|
title: "options.translatedNone",
|
||||||
|
|
|
@ -74,7 +74,7 @@ export default Component.extend(UtilsMixin, {
|
||||||
},
|
},
|
||||||
|
|
||||||
keyDown(event) {
|
keyDown(event) {
|
||||||
if (this.selectKit.isDisabled) {
|
if (this.selectKit.isDisabled || this.selectKit.options.disabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,10 @@
|
||||||
class="recurrence-input"
|
class="recurrence-input"
|
||||||
value=recurring
|
value=recurring
|
||||||
onChange=(action (mut recurring))
|
onChange=(action (mut recurring))
|
||||||
none="discourse_local_dates.create.form.recurring_none"}}
|
options=(hash
|
||||||
|
none="discourse_local_dates.create.form.recurring_none"
|
||||||
|
)
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
@ -134,10 +137,12 @@
|
||||||
valueProperty=null
|
valueProperty=null
|
||||||
nameProperty=null
|
nameProperty=null
|
||||||
class="timezones-input"
|
class="timezones-input"
|
||||||
allowAny=false
|
|
||||||
maximum=5
|
|
||||||
content=allTimezones
|
content=allTimezones
|
||||||
value=timezones
|
value=timezones
|
||||||
|
options=(hash
|
||||||
|
allowAny=false
|
||||||
|
maximum=5
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -47,7 +47,13 @@
|
||||||
{{/styleguide-example}}
|
{{/styleguide-example}}
|
||||||
|
|
||||||
{{#styleguide-example title="dropdown-select-box"}}
|
{{#styleguide-example title="dropdown-select-box"}}
|
||||||
{{dropdown-select-box content=dummy.options title="Something" onChange=(action "dummy")}}
|
{{dropdown-select-box
|
||||||
|
content=dummy.options
|
||||||
|
onChange=(action "dummy")
|
||||||
|
options=(hash
|
||||||
|
translatedNone="Something"
|
||||||
|
)
|
||||||
|
}}
|
||||||
{{/styleguide-example}}
|
{{/styleguide-example}}
|
||||||
|
|
||||||
{{#styleguide-example title="future-date-input-selector"}}
|
{{#styleguide-example title="future-date-input-selector"}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user