fixes default behavior for editing an image
parent
fca38ec507
commit
eef89c5a10
|
|
@ -11,7 +11,7 @@ import {CombatActionDialog} from "../dialog/combatAction.mjs";
|
|||
import {ActionManager} from "./actions/action-manager.mjs";
|
||||
import {DefenseActionDialog} from "../dialog/defenseAction.mjs";
|
||||
|
||||
const {HandlebarsApplicationMixin} = foundry.applications.api
|
||||
const {HandlebarsApplicationMixin, DocumentSheetV2} = foundry.applications.api
|
||||
const {ActorSheetV2} = foundry.applications.sheets
|
||||
const {ContextMenu} = foundry.applications.ux
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ class CharacterSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
|||
rollCombatSkill: CharacterSheet.#rollCombatSkill,
|
||||
rollSkill: CharacterSheet.#rollSkill,
|
||||
roll: CharacterSheet.#dieRoll,
|
||||
editImage: ActorSheetV2.DEFAULT_OPTIONS.actions.editImage,
|
||||
editImage: DocumentSheetV2.DEFAULT_OPTIONS.actions.editImage,
|
||||
openEmbeddedDocument: CharacterSheet.#openEmbeddedDocument,
|
||||
openCultureDocument: CharacterSheet.#openCultureDocument,
|
||||
openSpeciesDocument: CharacterSheet.#openSpeciesDocument,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
const {HandlebarsApplicationMixin} = foundry.applications.api
|
||||
const {HandlebarsApplicationMixin, DocumentSheetV2} = foundry.applications.api
|
||||
const {ActorSheetV2} = foundry.applications.sheets
|
||||
|
||||
export class CreatureSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
||||
|
|
@ -18,8 +18,7 @@ export class CreatureSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
|||
removeAttack: CreatureSheet.#removeAttack,
|
||||
addAttack: CreatureSheet.#addAttack,
|
||||
roll: CreatureSheet.#dieRoll,
|
||||
editImage: ActorSheetV2.DEFAULT_OPTIONS.actions.editImage,
|
||||
|
||||
editImage: DocumentSheetV2.DEFAULT_OPTIONS.actions.editImage,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@ export class EquipmentSheet extends HandlebarsApplicationMixin(DocumentSheetV2)
|
|||
resizable: true,
|
||||
},
|
||||
actions: {
|
||||
editImage:
|
||||
DocumentSheetV2.DEFAULT_OPTIONS.actions.editImage
|
||||
editImage: DocumentSheetV2.DEFAULT_OPTIONS.actions.editImage
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
const {HandlebarsApplicationMixin} = foundry.applications.api
|
||||
const {HandlebarsApplicationMixin, DocumentSheetV2} = foundry.applications.api
|
||||
const {ActorSheetV2} = foundry.applications.sheets
|
||||
const {ContextMenu} = foundry.applications.ux
|
||||
|
||||
export class GroupSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
||||
|
||||
|
|
@ -22,7 +21,7 @@ export class GroupSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
|||
},
|
||||
actions: {
|
||||
roll: GroupSheet.#dieRoll,
|
||||
editImage: ActorSheetV2.DEFAULT_OPTIONS.actions.editImage,
|
||||
editImage: DocumentSheetV2.DEFAULT_OPTIONS.actions.editImage,
|
||||
openEmbeddedDocument: GroupSheet.#openEmbeddedDocument,
|
||||
openActorDocument: GroupSheet.#openActorDocument,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
const {HandlebarsApplicationMixin} = foundry.applications.api
|
||||
const {DocumentSheetV2, ActorSheetV2} = foundry.applications.sheets
|
||||
const {HandlebarsApplicationMixin, DocumentSheetV2} = foundry.applications.api
|
||||
const {ActorSheetV2} = foundry.applications.sheets
|
||||
|
||||
export class MerchantSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ export class MerchantSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
|||
resizable: true,
|
||||
},
|
||||
actions: {
|
||||
editImage: MerchantSheet.editImage,
|
||||
editImage: DocumentSheetV2.DEFAULT_OPTIONS.actions.editImage,
|
||||
editServiceImage: MerchantSheet.#editServiceImage,
|
||||
editNewServiceImage: MerchantSheet.#editNewServiceImage,
|
||||
addNewService: MerchantSheet.#addNewService,
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
<div class="head-data">
|
||||
|
||||
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}"/>
|
||||
<img class="profile-img" src="{{img}}" data-action="editImage" data-edit="img" title="{{name}}"/>
|
||||
|
||||
<div class="sidebar-element resource-bar">
|
||||
<label>LeP: {{this.lep}}</label><span class="resource-fill lep" style="width: {{this.lepper}}%"></span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue