Create the initial version of the TableManager class for configuring settings
This commit is contained in:
parent
4bfce858ef
commit
8a2d946b63
21 changed files with 718 additions and 115 deletions
|
|
@ -15,6 +15,7 @@ export class StatSidebar extends HandlebarsApplicationMixin(AbstractSidebarTab)
|
|||
},
|
||||
actions: {
|
||||
openStats: this.#openStats,
|
||||
manageTables: this.#manageTables,
|
||||
createTable: this.#createTable,
|
||||
},
|
||||
};
|
||||
|
|
@ -39,7 +40,7 @@ export class StatSidebar extends HandlebarsApplicationMixin(AbstractSidebarTab)
|
|||
const controls = {
|
||||
openStats: { label: `View Stats`, action: `openStats` },
|
||||
createTable: { label: `Create New Table`, action: `createTable` },
|
||||
manageTables: { label: `Manage Tables`, action: `` },
|
||||
manageTables: { label: `Manage Tables`, action: `manageTables` },
|
||||
manageData: { label: `Manage Data`, action: `` },
|
||||
};
|
||||
|
||||
|
|
@ -65,6 +66,12 @@ export class StatSidebar extends HandlebarsApplicationMixin(AbstractSidebarTab)
|
|||
app.render({ force: true });
|
||||
};
|
||||
|
||||
/** @this {StatSidebar} */
|
||||
static async #manageTables() {
|
||||
const app = new CONFIG.stats.manager;
|
||||
app.render({ force: true });
|
||||
};
|
||||
|
||||
/** @this {StatSidebar} */
|
||||
static async #createTable() {
|
||||
const app = new CONFIG.stats.creator;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue