mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-08-05 00:30:51 +02:00
Fixed filter parameter and ensure refreshing notifications calls for notifications feeds only
This commit is contained in:
@@ -89,7 +89,7 @@ class Notifications {
|
||||
}
|
||||
|
||||
// Grav.default.Notifications.fetch()
|
||||
fetch({ locations = notificationsFilters(), refresh = false } = {}) {
|
||||
fetch({ filter = notificationsFilters(), refresh = false } = {}) {
|
||||
if (!canFetchNotifications()) {
|
||||
return false;
|
||||
}
|
||||
@@ -114,7 +114,7 @@ class Notifications {
|
||||
|
||||
request(`${config.base_url_relative}/task${config.param_sep}getNotifications`, {
|
||||
method: 'post',
|
||||
body: { refresh, filters: notificationsFilters() }
|
||||
body: { refresh, filter }
|
||||
}, (response) => {
|
||||
processNotifications(response);
|
||||
}).catch(() => {
|
||||
|
||||
2
themes/grav/js/admin.min.js
vendored
2
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user