Remove the manageData control from the sidebar because it's unimplemented for now
This commit is contained in:
parent
d345b110ab
commit
142586536a
1 changed files with 6 additions and 5 deletions
|
|
@ -41,7 +41,7 @@ export class StatSidebar extends HandlebarsApplicationMixin(AbstractSidebarTab)
|
||||||
openStats: { label: `View Stats`, action: `openStats` },
|
openStats: { label: `View Stats`, action: `openStats` },
|
||||||
createTable: { label: `Create New Table`, action: `createTable` },
|
createTable: { label: `Create New Table`, action: `createTable` },
|
||||||
manageTables: { label: `Manage Tables`, action: `manageTables` },
|
manageTables: { label: `Manage Tables`, action: `manageTables` },
|
||||||
manageData: { label: `Manage Data`, action: `` },
|
// manageData: { label: `Manage Data`, action: `` },
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!game.user.isGM) {
|
if (!game.user.isGM) {
|
||||||
|
|
@ -49,10 +49,11 @@ export class StatSidebar extends HandlebarsApplicationMixin(AbstractSidebarTab)
|
||||||
delete controls.manageTables;
|
delete controls.manageTables;
|
||||||
};
|
};
|
||||||
|
|
||||||
const canManageTheirOwnData = false;
|
// TODO: Add this back once row management is implemented
|
||||||
if (!game.user.isGM && !canManageTheirOwnData) {
|
// const canManageTheirOwnData = false;
|
||||||
delete controls.manageData;
|
// if (!game.user.isGM && !canManageTheirOwnData) {
|
||||||
};
|
// delete controls.manageData;
|
||||||
|
// };
|
||||||
|
|
||||||
Hooks.callAll(`${__ID__}.getStatsSidebarControls`, controls);
|
Hooks.callAll(`${__ID__}.getStatsSidebarControls`, controls);
|
||||||
ctx.controls = Object.values(controls);
|
ctx.controls = Object.values(controls);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue