{master} only show TOS in mod chat user view

closes lichess-org/tavern#118
stripe-checkout2
Thibault Duplessis 2021-05-30 08:34:23 +02:00
parent 8a6f01842d
commit c76a2526c7
2 changed files with 2 additions and 9 deletions

View File

@ -128,9 +128,7 @@ export interface ModerationData {
username: string;
text: string;
games?: number;
troll?: boolean;
engine?: boolean;
booster?: boolean;
tos?: boolean;
history?: ModerationHistoryEntry[];
}

View File

@ -67,12 +67,7 @@ export function moderationView(ctrl?: ModerationCtrl): VNode[] | undefined {
const infos = data.history
? h(
'div.infos.block',
[
numberFormat(data.games || 0) + ' games',
data.troll ? 'TROLL' : undefined,
data.engine ? 'ENGINE' : undefined,
data.booster ? 'BOOSTER' : undefined,
]
[numberFormat(data.games || 0) + ' games', data.tos ? 'TOS' : undefined]
.map(t => t && h('span', t))
.concat([
h(