feat: show notification only when update is ready to install

This commit is contained in:
Zamitto
2024-07-05 12:10:19 -03:00
parent b09f2c055f
commit d2b3017de9
4 changed files with 8 additions and 23 deletions

View File

@@ -69,21 +69,10 @@ export const publishNewRepacksNotifications = async (count: number) => {
export const publishNotificationUpdateReadyToInstall = async () => {
new Notification({
title: t("new_version_title", {
title: t("new_version_available", {
ns: "notifications",
}),
body: t("new_version_body", {
ns: "notifications",
}),
}).show();
};
export const publishNotificationUpdateAvailable = async () => {
new Notification({
title: t("new_version_title", {
ns: "notifications",
}),
body: t("new_version_body", {
body: t("restart_to_install_new_version", {
ns: "notifications",
}),
}).show();