From 9b456954b1a0d0d9703ee337c4b9919d802e47f4 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Mon, 1 Apr 2024 06:19:26 +0000 Subject: [PATCH] Change "first seen ... before" to "confirmed ... after" --- .../block-overview-tooltip.component.html | 4 ++-- .../src/app/components/time/time.component.ts | 24 +------------------ 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/frontend/src/app/components/block-overview-tooltip/block-overview-tooltip.component.html b/frontend/src/app/components/block-overview-tooltip/block-overview-tooltip.component.html index ec60803a5..f4c0fdf3f 100644 --- a/frontend/src/app/components/block-overview-tooltip/block-overview-tooltip.component.html +++ b/frontend/src/app/components/block-overview-tooltip/block-overview-tooltip.component.html @@ -19,8 +19,8 @@ - First seen - + Confirmed + Amount diff --git a/frontend/src/app/components/time/time.component.ts b/frontend/src/app/components/time/time.component.ts index 61cc799dc..5b4a93ca6 100644 --- a/frontend/src/app/components/time/time.component.ts +++ b/frontend/src/app/components/time/time.component.ts @@ -23,7 +23,7 @@ export class TimeComponent implements OnInit, OnChanges, OnDestroy { @Input() time: number; @Input() dateString: number; - @Input() kind: 'plain' | 'since' | 'until' | 'span' | 'before' = 'plain'; + @Input() kind: 'plain' | 'since' | 'until' | 'span' = 'plain'; @Input() fastRender = false; @Input() fixedRender = false; @Input() relative = false; @@ -206,28 +206,6 @@ export class TimeComponent implements OnInit, OnChanges, OnDestroy { } } break; - case 'before': - if (number === 1) { - switch (unit) { // singular (1 day) - case 'year': return $localize`:@@time-span:${dateStrings.i18nYear}:DATE: before`; break; - case 'month': return $localize`:@@time-span:${dateStrings.i18nMonth}:DATE: before`; break; - case 'week': return $localize`:@@time-span:${dateStrings.i18nWeek}:DATE: before`; break; - case 'day': return $localize`:@@time-span:${dateStrings.i18nDay}:DATE: before`; break; - case 'hour': return $localize`:@@time-span:${dateStrings.i18nHour}:DATE: before`; break; - case 'minute': return $localize`:@@time-span:${dateStrings.i18nMinute}:DATE: before`; break; - case 'second': return $localize`:@@time-span:${dateStrings.i18nSecond}:DATE: before`; break; - } - } else { - switch (unit) { // plural (2 days) - case 'year': return $localize`:@@time-span:${dateStrings.i18nYears}:DATE: before`; break; - case 'month': return $localize`:@@time-span:${dateStrings.i18nMonths}:DATE: before`; break; - case 'week': return $localize`:@@time-span:${dateStrings.i18nWeeks}:DATE: before`; break; - case 'day': return $localize`:@@time-span:${dateStrings.i18nDays}:DATE: before`; break; - case 'hour': return $localize`:@@time-span:${dateStrings.i18nHours}:DATE: before`; break; - case 'minute': return $localize`:@@time-span:${dateStrings.i18nMinutes}:DATE: before`; break; - case 'second': return $localize`:@@time-span:${dateStrings.i18nSeconds}:DATE: before`; break; - } - } break; default: if (number === 1) {