Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/FullRepresentation.qml
Show First 20 Lines • Show All 223 Lines • ▼ Show 20 Line(s) | 219 | text: { | |||
---|---|---|---|---|---|
224 | var inhibitedUntil = notificationSettings.notificationsInhibitedUntil; | 224 | var inhibitedUntil = notificationSettings.notificationsInhibitedUntil; | ||
225 | var inhibitedByApp = notificationSettings.notificationsInhibitedByApplication; | 225 | var inhibitedByApp = notificationSettings.notificationsInhibitedByApplication; | ||
226 | var inhibitedByMirroredScreens = notificationSettings.inhibitNotificationsWhenScreensMirrored | 226 | var inhibitedByMirroredScreens = notificationSettings.inhibitNotificationsWhenScreensMirrored | ||
227 | && notificationSettings.screensMirrored; | 227 | && notificationSettings.screensMirrored; | ||
228 | 228 | | |||
229 | var sections = []; | 229 | var sections = []; | ||
230 | 230 | | |||
231 | // Show until time if valid but not if too far int he future | 231 | // Show until time if valid but not if too far int he future | ||
232 | if (!isNaN(inhibitedUntil.getTime()) && inhibitedUntil.getTime() - new Date().getTime() < 365 * 24 * 60 * 60 * 1000 /* 1 year*/) { | 232 | if (!isNaN(inhibitedUntil.getTime()) && inhibitedUntil.getTime() - new Date().getTime() < 100 * 24 * 60 * 60 * 1000 /* 100 days*/) { | ||
233 | sections.push(i18nc("Do not disturb until date", "Until %1", | 233 | sections.push(i18nc("Do not disturb until date", "Until %1", | ||
234 | KCoreAddons.Format.formatRelativeDateTime(inhibitedUntil, Locale.ShortFormat))); | 234 | KCoreAddons.Format.formatRelativeDateTime(inhibitedUntil, Locale.ShortFormat))); | ||
235 | } | 235 | } | ||
236 | 236 | | |||
237 | if (inhibitedByApp) { | 237 | if (inhibitedByApp) { | ||
238 | var inhibitionAppNames = notificationSettings.notificationInhibitionApplications; | 238 | var inhibitionAppNames = notificationSettings.notificationInhibitionApplications; | ||
239 | var inhibitionAppReasons = notificationSettings.notificationInhibitionReasons; | 239 | var inhibitionAppReasons = notificationSettings.notificationInhibitionReasons; | ||
240 | 240 | | |||
▲ Show 20 Lines • Show All 388 Lines • Show Last 20 Lines |