- Added "send to chat" button on items sheets.
- Minor fixe on editable state.
This commit is contained in:
@@ -177,7 +177,7 @@ export class BaseSheetL5r5e extends ActorSheet {
|
||||
*/
|
||||
async _onDrop(event) {
|
||||
// *** Everything below here is only needed if the sheet is editable ***
|
||||
if (!this.options.editable) {
|
||||
if (!this.isEditable) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -317,7 +317,7 @@ export class BaseSheetL5r5e extends ActorSheet {
|
||||
game.l5r5e.HelpersL5r5e.commonListeners(html, this.actor);
|
||||
|
||||
// *** Everything below here is only needed if the sheet is editable ***
|
||||
if (!this.options.editable) {
|
||||
if (!this.isEditable) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ export class CharacterSheetL5r5e extends BaseSheetL5r5e {
|
||||
*/
|
||||
_getHeaderButtons() {
|
||||
let buttons = super._getHeaderButtons();
|
||||
if (!this.options.editable || this.actor.limited) {
|
||||
if (!this.isEditable || this.actor.limited) {
|
||||
return buttons;
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ export class CharacterSheetL5r5e extends BaseSheetL5r5e {
|
||||
super.activateListeners(html);
|
||||
|
||||
// *** Everything below here is only needed if the sheet is editable ***
|
||||
if (!this.options.editable) {
|
||||
if (!this.isEditable) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@ export class TwentyQuestionsDialog extends FormApplication {
|
||||
});
|
||||
|
||||
// *** Everything below here is only needed if the sheet is editable ***
|
||||
if (!this.options.editable) {
|
||||
if (!this.isEditable) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ export class TwentyQuestionsDialog extends FormApplication {
|
||||
*/
|
||||
async _onDropItem(type, event) {
|
||||
// *** Everything below here is only needed if the sheet is editable ***
|
||||
if (!this.options.editable) {
|
||||
if (!this.isEditable) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user