Finish writing the GenericAppMixin jsdoc
This commit is contained in:
parent
a01c79ea2f
commit
511481e608
1 changed files with 3 additions and 2 deletions
|
|
@ -4,7 +4,8 @@ import { RichEditor } from "./RichEditor.mjs";
|
|||
import { toBoolean } from "../consts.mjs";
|
||||
|
||||
/**
|
||||
* A mixin that takes the class from HandlebarsApplicationMixin and
|
||||
* A mixin that takes the class from HandlebarsApplicationMixin and combines it
|
||||
* with utility functions / data that is used across all RipCrypt applications
|
||||
*/
|
||||
export function GenericAppMixin(HandlebarsApp) {
|
||||
class GenericRipCryptApp extends HandlebarsApp {
|
||||
|
|
@ -91,7 +92,7 @@ export function GenericAppMixin(HandlebarsApp) {
|
|||
ctx.meta.idp = this.document?.uuid ?? this.id;
|
||||
if (this.document) {
|
||||
ctx.meta.limited = this.document.limited;
|
||||
ctx.meta.editable = this.document.isOwner;
|
||||
ctx.meta.editable = this.isEditable ?? game.user.isGM;
|
||||
ctx.meta.embedded = this.document.isEmbedded;
|
||||
};
|
||||
delete ctx.editable;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue