FIX: Uncategorized pm not allowing edit (#7276)

This commit is contained in:
Tim Lange
2019-04-02 06:54:53 +02:00
committed by Guo Xiang Tan
parent 4175de5071
commit a9a35d2c19
4 changed files with 280 additions and 1 deletions

View File

@@ -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")