From e6c5afb5dd945435a55e45e29367633e4755c21f Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Fri, 20 Nov 2020 15:41:17 -0800 Subject: [PATCH] Better handling of offline/intranet mode when the repository index is missing. Faster admin. (fixes #1916) --- CHANGELOG.md | 1 + themes/grav/templates/partials/plugin-data.html.twig | 2 +- themes/grav/templates/partials/themes-details.html.twig | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 006ee5f1b..848bad9db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ * Remember the open state of the sidebar [#1973](https://github.com/getgrav/grav-plugin-admin/issues/1973) * Upgraded node dependencies to latest version. Improved speed of JS compilation. * Added modal to confirm updating Grav as well as cool down counter before enabling Update button [#1257](https://github.com/getgrav/grav-plugin-admin/issues/1257) + * Better handling of offline/intranet mode when the repository index is missing. Faster admin. [#1916](https://github.com/getgrav/grav-plugin-admin/issues/1916) 1. [](#bugfix) * Fixed Safari issue with new ACL picker field [#1955](https://github.com/getgrav/grav-plugin-admin/issues/1955) * Stop propagation of ACL add button in ACL picker [flex-objects#83](https://github.com/trilbymedia/grav-plugin-flex-objects/issues/83) diff --git a/themes/grav/templates/partials/plugin-data.html.twig b/themes/grav/templates/partials/plugin-data.html.twig index ebf7da1c8..a5fedc5a8 100644 --- a/themes/grav/templates/partials/plugin-data.html.twig +++ b/themes/grav/templates/partials/plugin-data.html.twig @@ -64,7 +64,7 @@ {% endif %} - {% if admin.gpm.findPackage(plugin.slug).changelog %} + {% if admin.gpm.findPackage(plugin.slug, true).changelog %} {{ "PLUGIN_ADMIN.CHANGELOG"|tu }}: View Changelog diff --git a/themes/grav/templates/partials/themes-details.html.twig b/themes/grav/templates/partials/themes-details.html.twig index c77e3ccc1..28190c36d 100644 --- a/themes/grav/templates/partials/themes-details.html.twig +++ b/themes/grav/templates/partials/themes-details.html.twig @@ -96,7 +96,7 @@ {% endif %} - {% if admin.gpm.findPackage(theme.slug).changelog %} + {% if admin.gpm.findPackage(theme.slug, true).changelog %} {{ "PLUGIN_ADMIN.CHANGELOG"|tu }}: View Changelog