Add stopgaps for user editing

This commit is contained in:
walcutt 2024-12-26 22:54:39 -05:00
parent 0872672ff4
commit 8358b3578d
3 changed files with 6 additions and 1 deletions

View File

@ -11,6 +11,7 @@ export class HenchCardsSheet extends CardsConfig {
/** @override */
getData() {
const t = super.getData();
t.canManage = game.users.current.isGM;
return t;
}

View File

@ -39,6 +39,10 @@
font-weight: bold;
}
.hench-strikethrough {
text-decoration-line: line-through;
}
.hench-centered {
text-align: center;
}

View File

@ -18,7 +18,7 @@
Draw
</span>
</div>
<div class="hench-row hench-padding-narrow hench-white hench-centered hench-clickable hench-cards-action-edit-deck">
<div class="hench-row hench-padding-narrow hench-white hench-centered {{#if canManage}}hench-clickable hench-cards-action-edit-deck{{else}}hench-strikethrough{{/if}}">
<span class="hench-flex-resizeable">
Edit deck
</span>