Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
chore: only show download error notification if the meeting is within…
Browse files Browse the repository at this point in the history
… the next 7 days; fix download-error icon; make download icon red only if app is offline
  • Loading branch information
sircharlo committed Oct 9, 2024
1 parent 104ce1a commit 97da8fc
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 13 deletions.
6 changes: 1 addition & 5 deletions src/components/media/DownloadStatus.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<template>
<q-btn
:color="
!online || Object.values(downloadProgress).find((item) => item.error)
? 'negative'
: 'white-transparent'
"
:color="!online ? 'negative' : 'white-transparent'"
class="super-rounded position-relative"
rounded
unelevated
Expand Down
10 changes: 5 additions & 5 deletions src/css/mmm-icons.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@font-face {
font-family: mmm-icons;
src: url("mmm-icons.eot");src: url("mmm-icons.eot?84d565f6#iefix") format("embedded-opentype"),
url("mmm-icons.woff2?84d565f6") format("woff2"),
url("mmm-icons.woff?84d565f6") format("woff"),
url("mmm-icons.ttf?84d565f6") format("truetype"),
url("mmm-icons.svg?84d565f6#mmm-icons") format("svg");
src: url("mmm-icons.eot");src: url("mmm-icons.eot?e9f8a4b1#iefix") format("embedded-opentype"),
url("mmm-icons.woff2?e9f8a4b1") format("woff2"),
url("mmm-icons.woff?e9f8a4b1") format("woff"),
url("mmm-icons.ttf?e9f8a4b1") format("truetype"),
url("mmm-icons.svg?e9f8a4b1#mmm-icons") format("svg");
font-weight: normal;
font-style: normal;
}
Expand Down
Binary file modified src/css/mmm-icons.eot
Binary file not shown.
2 changes: 1 addition & 1 deletion src/css/mmm-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/css/mmm-icons.ttf
Binary file not shown.
Binary file modified src/css/mmm-icons.woff
Binary file not shown.
Binary file modified src/css/mmm-icons.woff2
Binary file not shown.
3 changes: 2 additions & 1 deletion src/pages/MediaCalendarPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,8 @@ watch(
.map((d) => date.formatDate(d.date, 'YYYY/MM/DD')),
(errorVals) => {
errorVals?.forEach((errorVal) => {
if (seenErrors.has(currentCongregation + errorVal)) return;
const daysUntilError = date.getDateDiff(errorVal, new Date(), 'days');
if (seenErrors.has(currentCongregation + errorVal) || daysUntilError > 7) return;
createTemporaryNotification({
caption: getDateLocaleFormatted(
currentSettings.value?.localAppLang,
Expand Down
4 changes: 3 additions & 1 deletion ui/icons/cloud-error.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 97da8fc

Please sign in to comment.