mirror of
https://github.com/discourse/discourse-table-builder.git
synced 2026-09-17 07:12:13 -04:00
19 lines
436 B
JavaScript
19 lines
436 B
JavaScript
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");
|
||
|
|
}
|
||
|
|
}
|