Skip to content

A platform for community discussion. Free, open, simple.

DEV: Add back-compat to recently converted computed props (#29508)

Jarek Radoszb44b136b840f
diff --git a/app/assets/javascripts/discourse/app/models/composer.js b/app/assets/javascripts/discourse/app/models/composer.js
index 1b719381dd2..67ae483fa5f 100644
--- a/app/assets/javascripts/discourse/app/models/composer.js
+++ b/app/assets/javascripts/discourse/app/models/composer.js
@@ -267,10 +267,12 @@ export default class Composer extends RestModel {
return categoryId ? Category.findById(categoryId) : null;
}
+ @dependentKeyCompat
get replyingToTopic() {
return this.get("action") === REPLY;
}
+ @dependentKeyCompat
get editingPost() {
return isEdit(this.get("action"));
}