187 files
This commit is contained in:
@@ -38,7 +38,7 @@ class TaskMateActivityCard extends LitElement {
|
||||
// Everything else (penalty, bonus, gift, manual add/remove) is reversible.
|
||||
static get _UNDO_DENY_PREFIXES() {
|
||||
return [
|
||||
"Weekend bonus", "Streak milestone bonus", "Perfect week bonus",
|
||||
"Weekend bonus", "Streak milestone bonus", "Perfect week bonus", "Weekly target bonus",
|
||||
"Allocated to pool:", "Pool refund", "Points decay",
|
||||
"Savings interest", "Badge", "Streak freeze",
|
||||
"Wish savings", "Wish refund", "Wish pledge", "Wish redeemed",
|
||||
@@ -1099,7 +1099,9 @@ class TaskMateActivityCard extends LitElement {
|
||||
const verb = isAdd ? this._t('activity.received') : isSpend ? this._t('activity.spent') : this._t('activity.lost');
|
||||
const sign = isAdd ? '+' : '−';
|
||||
const tone = isAdd ? 'good' : (isSpend ? 'accent' : 'bad');
|
||||
const emoji = reason.startsWith('Inspection passed:') ? '🔍' : isAdd ? '⭐' : (isPenalty ? '⚠️' : '➖');
|
||||
const emoji = reason.startsWith('Inspection passed:') ? '🔍'
|
||||
: isAdd ? html`<ha-icon style="--mdc-icon-size:1.1em" icon="${pointsIcon}"></ha-icon>`
|
||||
: (isPenalty ? '⚠️' : '➖');
|
||||
return {
|
||||
childName, tone, emoji, sign, pts,
|
||||
text: html`<strong>${childName}</strong> ${verb} <strong>${pts}</strong>${item.reason ? html` <span class="reason">— ${displayReason}</span>` : ''}`,
|
||||
|
||||
Reference in New Issue
Block a user