From a5db189c970a5ed62df171e1de4d88fc26651f69 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 9 Feb 2024 17:47:46 -0600 Subject: Add replies controller --- static/js/controllers/replies_controller.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 static/js/controllers/replies_controller.js (limited to 'static/js/controllers/replies_controller.js') 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; + } +} -- cgit v1.2.3