mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 10:47:31 +08:00
FIX: tag input says tags are optional when they're required
This commit is contained in:
parent
1a5bcf2a64
commit
5a71c51ddd
|
@ -185,6 +185,13 @@ export default Controller.extend(bufferedProperty("model"), {
|
|||
);
|
||||
},
|
||||
|
||||
@discourseComputed("model.category")
|
||||
minimumRequiredTags(category) {
|
||||
return category && category.minimum_required_tags > 0
|
||||
? category.minimum_required_tags
|
||||
: null;
|
||||
},
|
||||
|
||||
_forceRefreshPostStream() {
|
||||
this.appEvents.trigger("post-stream:refresh", { force: true });
|
||||
},
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
options=(hash
|
||||
filterable=true
|
||||
categoryId=buffered.category_id
|
||||
minimum=minimumRequiredTags
|
||||
)
|
||||
}}
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user