Merge "Better combined notification title"
diff --git a/polygerrit-ui/app/workers/service-worker-class.ts b/polygerrit-ui/app/workers/service-worker-class.ts
index 1c54158..03b6b902 100644
--- a/polygerrit-ui/app/workers/service-worker-class.ts
+++ b/polygerrit-ui/app/workers/service-worker-class.ts
@@ -141,7 +141,7 @@
}
private showNotificationForDashboard(numOfChangesToNotifyAbout: number) {
- const title = `You are in the attention set for ${numOfChangesToNotifyAbout} changes.`;
+ const title = `You are in the attention set for ${numOfChangesToNotifyAbout} new changes.`;
const dashboardUrl = createDashboardUrl({});
const data = {url: `${self.location.origin}${dashboardUrl}`};
const icon = `${self.location.origin}/favicon.ico`;
diff --git a/polygerrit-ui/app/workers/service-worker-class_test.ts b/polygerrit-ui/app/workers/service-worker-class_test.ts
index 4cbd7bb..33a19d9 100644
--- a/polygerrit-ui/app/workers/service-worker-class_test.ts
+++ b/polygerrit-ui/app/workers/service-worker-class_test.ts
@@ -105,7 +105,7 @@
assert.isTrue(showNotificationMock.calledOnce);
assert.isTrue(
showNotificationMock.calledWithMatch(
- 'You are in the attention set for 2 changes.'
+ 'You are in the attention set for 2 new changes.'
)
);
});