mirror of
https://github.com/discourse/discourse-table-builder.git
synced 2026-09-16 23:02:13 -04:00
DEV: Trigger modal from Edit Table Button
Triggers modal after clicking Edit Table from selection. Data from post is then passed to the modal.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import Controller from "@ember/controller";
|
||||
import { action } from "@ember/object";
|
||||
import { tracked } from "@glimmer/tracking";
|
||||
import { A } from "@ember/array";
|
||||
|
||||
export default class extends Controller {
|
||||
@action
|
||||
cancelTableEdit() {
|
||||
this.send("closeModal");
|
||||
}
|
||||
|
||||
@action
|
||||
editTable() {
|
||||
// TODO: insert table edit submission logic
|
||||
console.log("Table has been successfully edited");
|
||||
this.send("closeModal");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user