mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 09:46:06 +01:00
Add an option to disable the automatic check for updates. Enabled by default. Grav updates still show up when pressing the 'Check for updates' button
This commit is contained in:
@@ -9,6 +9,7 @@ warnings:
|
||||
delete_page: true
|
||||
edit_mode: normal
|
||||
show_beta_msg: true
|
||||
enable_auto_updates_check: true
|
||||
popularity:
|
||||
enabled: true
|
||||
ignore: ['/test*','/modular']
|
||||
|
||||
@@ -69,6 +69,18 @@ form:
|
||||
type: bool
|
||||
help: Show the beta warning message on the dashboard
|
||||
|
||||
enable_auto_updates_check:
|
||||
type: toggle
|
||||
label: Automatically check for updates
|
||||
highlight: 1
|
||||
default: 1
|
||||
options:
|
||||
1: Enabled
|
||||
0: Disabled
|
||||
validate:
|
||||
type: bool
|
||||
help: Shows an informative message, in the admin panel, when an update is available.
|
||||
|
||||
session.timeout:
|
||||
type: text
|
||||
size: small
|
||||
|
||||
@@ -402,7 +402,9 @@ $(function () {
|
||||
});
|
||||
};
|
||||
|
||||
GPMRefresh();
|
||||
if (GravAdmin.config.enable_auto_updates_check === '1') {
|
||||
GPMRefresh();
|
||||
}
|
||||
|
||||
function reIndex (collection) {
|
||||
var holder = collection.find('[data-collection-holder]'),
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<script type="text/javascript">
|
||||
window.GravAdmin = window.GravAdmin || {};
|
||||
window.GravAdmin.config = {
|
||||
base_url_relative: '{{ base_url_relative }}',
|
||||
param_sep: '{{ config.system.param_sep }}'
|
||||
};
|
||||
window.GravAdmin = window.GravAdmin || {};
|
||||
window.GravAdmin.config = {
|
||||
base_url_relative: '{{ base_url_relative }}',
|
||||
param_sep: '{{ config.system.param_sep }}',
|
||||
enable_auto_updates_check: '{{ config.plugins.admin.enable_auto_updates_check }}'
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user