Skip to content

Commit bdefd84

Browse files
committed
feat: add 3 m resolution
1 parent a78e5f8 commit bdefd84

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/app/components/dashboard/dashboard.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ <h2>Chart</h2>
1313
<div class="ml-auto font-medium text-gray-400">
1414
<span (click)="chartResolution$.next('1 m')" [class.active]="(chartResolution$ | async) === '1 m'" class="cursor-pointer">1 m</span>
1515
|
16+
<span (click)="chartResolution$.next('3 m')" [class.active]="(chartResolution$ | async) === '3 m'" class="cursor-pointer">3 m</span>
17+
|
1618
<span (click)="chartResolution$.next('6 m')" [class.active]="(chartResolution$ | async) === '6 m'" class="cursor-pointer">6 m</span>
1719
|
1820
<span (click)="chartResolution$.next('12 m')" [class.active]="(chartResolution$ | async) === '12 m'" class="cursor-pointer">12 m</span>

src/app/components/dashboard/dashboard.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { dateTimeToDate, Milliseconds } from '../../services/time.utils';
2121
import { WeekComponent } from '../week/week.component';
2222
import { LoadingSpinnerComponent } from '../loading-spinner/loading-spinner.component';
2323

24-
type Resolution = 'all' | '1 m' | '6 m' | '12 m';
24+
type Resolution = 'all' | '1 m' | '3 m' | '6 m' | '12 m';
2525

2626
@Component({
2727
selector: 'kw-dashboard',

0 commit comments

Comments
 (0)