Move the context menu above the readonly shortcut to make it possible to view the image without needing edit mode
This commit is contained in:
parent
5a0484190e
commit
fc065a5234
1 changed files with 4 additions and 3 deletions
|
|
@ -26,9 +26,6 @@ export class UntypedItemSheet extends GenericItemSheet {
|
|||
activateListeners(html) {
|
||||
super.activateListeners(html);
|
||||
|
||||
if (!this.isEditable) return;
|
||||
console.debug(`.dungeon | Adding event listeners for Untyped Item: ${this.item.id}`);
|
||||
|
||||
new GenericContextMenu(html, `.photo.panel`, [
|
||||
{
|
||||
name: `View Larger`,
|
||||
|
|
@ -38,11 +35,15 @@ export class UntypedItemSheet extends GenericItemSheet {
|
|||
},
|
||||
{
|
||||
name: `Change Photo`,
|
||||
condition: () => this.isEditable,
|
||||
callback: (html) => {
|
||||
console.log(`.dungeon | Change Photo`);
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
||||
if (!this.isEditable) return;
|
||||
console.debug(`.dungeon | Adding event listeners for Untyped Item: ${this.item.id}`);
|
||||
};
|
||||
|
||||
async getData() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue