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:
Keegan George
2022-07-11 15:05:50 -07:00
parent 83d10bff76
commit b62f595eeb
6 changed files with 93 additions and 0 deletions
@@ -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");
}
}