mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 19:37:55 +08:00
UX: Allow topic to be published to the same category when unlisted.
This commit is contained in:
parent
690d2f4bd3
commit
cd59db5aa3
|
@ -59,6 +59,11 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
|||
return Ember.isEmpty(updateTime) || updateTimeInvalid || loading;
|
||||
},
|
||||
|
||||
@computed("model.visible")
|
||||
excludeCategoryId(visible) {
|
||||
if (visible) return this.get('model.category_id');
|
||||
},
|
||||
|
||||
@observes("topicStatusUpdate.execute_at", "topicStatusUpdate.duration")
|
||||
_setUpdateTime() {
|
||||
let time = null;
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
{{else if publishToCategory}}
|
||||
<div class="control-group">
|
||||
<label>{{i18n 'topic.topic_status_update.publish_to'}}</label>
|
||||
{{category-chooser valueAttribute="id" value=categoryId excludeCategoryId=model.category_id}}
|
||||
{{category-chooser valueAttribute="id" value=categoryId excludeCategoryId=excludeCategoryId}}
|
||||
</div>
|
||||
|
||||
{{auto-update-input
|
||||
|
|
Loading…
Reference in New Issue
Block a user