Added a setting to hide attribution

This commit is contained in:
WBHarry 2025-08-17 15:12:39 +02:00
parent e8aa2acdf0
commit 52466b2803
15 changed files with 47 additions and 15 deletions

View file

@ -86,6 +86,13 @@ export default class BaseDataActor extends foundry.abstract.TypeDataModel {
*/
static DEFAULT_ICON = null;
get attributionLabel() {
if (!this.attribution) return;
const { source, page } = this.attribution;
return [source, page ? `pg ${page}.` : null].filter(x => x).join('. ');
}
/* -------------------------------------------- */
/**