Action buttons have icons. Pretty Iconic

This commit is contained in:
Nikhil Nagarajan 2025-12-15 16:59:19 -05:00
parent d2f9b3912b
commit e0b45ce8f4
2 changed files with 8 additions and 0 deletions

View file

@ -141,6 +141,12 @@ export function ActionMixin(Base) {
return this.documentName;
}
//Getter for icons
get typeIcon() {
const config = CONFIG.DH.ACTIONS.actionTypes[this.type];
return config?.icon || 'fa-question'; // Fallback icon just in case
}
get relativeUUID() {
return `.Item.${this.item.id}.Action.${this.id}`;
}