mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Uncategorized pm not allowing edit (#7276)
This commit is contained in:
@@ -121,6 +121,7 @@ const Composer = RestModel.extend({
|
||||
creatingSharedDraft: Ember.computed.equal("action", CREATE_SHARED_DRAFT),
|
||||
creatingPrivateMessage: Ember.computed.equal("action", PRIVATE_MESSAGE),
|
||||
notCreatingPrivateMessage: Ember.computed.not("creatingPrivateMessage"),
|
||||
notPrivateMessage: Ember.computed.not("privateMessage"),
|
||||
|
||||
@computed("privateMessage", "archetype.hasOptions")
|
||||
showCategoryChooser(isPrivateMessage, hasOptions) {
|
||||
@@ -210,7 +211,8 @@ const Composer = RestModel.extend({
|
||||
|
||||
canCategorize: Ember.computed.and(
|
||||
"canEditTitle",
|
||||
"notCreatingPrivateMessage"
|
||||
"notCreatingPrivateMessage",
|
||||
"notPrivateMessage"
|
||||
),
|
||||
|
||||
@computed("canEditTitle", "creatingPrivateMessage", "categoryId")
|
||||
|
||||
Reference in New Issue
Block a user