Fix scheduled task run notification
This commit is contained in:
@@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
- Fixed popup preview authentication for background thumbnail capture.
|
- Fixed popup preview authentication for background thumbnail capture.
|
||||||
- Fixed thumbnails so they use the same popup-preview canvas and resolve API/RSS placeholders, fonts, styles, and cached images correctly.
|
- Fixed thumbnails so they use the same popup-preview canvas and resolve API/RSS placeholders, fonts, styles, and cached images correctly.
|
||||||
|
- Fixed manual scheduled-task run notifications so they use task-neutral wording.
|
||||||
|
|
||||||
## 2.8.3 - 2026-08-17
|
## 2.8.3 - 2026-08-17
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
(function () {
|
(function () {
|
||||||
if (window.location.pathname.replace(/\/$/, '') !== '/settings/tasks-background' && window.location.pathname.replace(/\/$/, '') !== '/settings/tasks-scheduled') {
|
var normalizedPathname = window.location.pathname.replace(/\/$/, '');
|
||||||
|
if (normalizedPathname !== '/settings/tasks-background' && normalizedPathname !== '/settings/tasks-scheduled') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ module.exports = function registerSettingsRoutes(app, deps) {
|
|||||||
app.post('/settings/tasks-scheduled/recurring/:key/run', requireRecurringTaskAccess, async function (req, res, next) {
|
app.post('/settings/tasks-scheduled/recurring/:key/run', requireRecurringTaskAccess, async function (req, res, next) {
|
||||||
try {
|
try {
|
||||||
const ran = await backgroundTaskQueue.runRecurringTask(String(req.params.key || '').trim());
|
const ran = await backgroundTaskQueue.runRecurringTask(String(req.params.key || '').trim());
|
||||||
res.redirect('/settings/tasks-scheduled?message=' + encodeURIComponent(ran ? 'Scheduled refresh run queued.' : 'Unable to run that scheduled refresh.'));
|
res.redirect('/settings/tasks-scheduled?message=' + encodeURIComponent(ran ? 'Task run queued.' : 'Unable to run that task.'));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
next(error);
|
next(error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user