mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-18 05:02:14 +01:00
clarify naming on activity type
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
export interface WindowActivityInPeriod {
|
export interface WindowActivityInPeriod {
|
||||||
appName: string;
|
appName: string;
|
||||||
url: string | null;
|
label: string | null;
|
||||||
count: number;
|
count: number;
|
||||||
icon?: string | null;
|
icon?: string | null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ export function useActivityBoxes(params: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getActivityText(activity: WindowActivityInPeriod): string {
|
function getActivityText(activity: WindowActivityInPeriod): string {
|
||||||
return activity.url ? `${activity.appName} - ${activity.url}` : activity.appName;
|
return activity.label ? `${activity.appName} - ${activity.label}` : activity.appName;
|
||||||
}
|
}
|
||||||
|
|
||||||
const activityBoxes = computed<ActivityBox[]>(() => {
|
const activityBoxes = computed<ActivityBox[]>(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user