diff --git a/src/api/fragments.ts b/src/api/fragments.ts
index a3b0b4d81..179674746 100644
--- a/src/api/fragments.ts
+++ b/src/api/fragments.ts
@@ -37,6 +37,7 @@ export const EVENT_FRAGMENT = `
id
catcherType
totalCount
+ count
assignee {
id
name
diff --git a/src/components/event/RepetitionsList.vue b/src/components/event/RepetitionsList.vue
index 39c5157bb..803520b79 100644
--- a/src/components/event/RepetitionsList.vue
+++ b/src/components/event/RepetitionsList.vue
@@ -27,6 +27,14 @@
{{ formatTimeByRepetition(repetition) }}
+
+
+ {{ repetition.count || '—' }}
+ |
+
{
if (repetition.payload.release) {
@@ -217,11 +226,15 @@ export default defineComponent({
userSpecifiedSomewhere = true;
}
- if (titleSpecifiedSomewhere && userSpecifiedSomewhere && releaseSpecifiedSomewhere) {
- return;
+ if (repetition.count) {
+ countSpecifiedSomewhere = true;
}
});
+ if (countSpecifiedSomewhere) {
+ cols.push('Count');
+ }
+
if (userSpecifiedSomewhere) {
cols.push('User');
}
diff --git a/src/types/events.ts b/src/types/events.ts
index 526d387c8..ce4378541 100644
--- a/src/types/events.ts
+++ b/src/types/events.ts
@@ -76,6 +76,14 @@ export interface HawkEvent {
*/
totalCount: number;
+ /**
+ * Number of real occurrences this single repetition represents. Undefined
+ * for the original event and for ordinary repetitions (both mean "single
+ * occurrence") — distinct from totalCount, which is the group's grand
+ * total across all repetitions.
+ */
+ count?: number;
+
/**
* Users who visited this event
*/
|