summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/js/controllers/replies_controller.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/static/js/controllers/replies_controller.js b/static/js/controllers/replies_controller.js
new file mode 100644
index 0000000..3bdf831
--- /dev/null
+++ b/static/js/controllers/replies_controller.js
@@ -0,0 +1,18 @@
+import { BaseController } from "./base_controller.js";
+
+export class RepliesController extends BaseController {
+ constructor(domain) {
+ super(domain);
+ this.reply_form = this.getReplyForm();
+ }
+
+ getReplyForm() {
+ var form;
+
+ this.get("/api/replies/new").then((response) => {
+ form = value?.getElementById("reply-form");
+ });
+
+ return form;
+ }
+}