mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 17:56:07 +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
|
delete_page: true
|
||||||
edit_mode: normal
|
edit_mode: normal
|
||||||
show_beta_msg: true
|
show_beta_msg: true
|
||||||
|
enable_auto_updates_check: true
|
||||||
popularity:
|
popularity:
|
||||||
enabled: true
|
enabled: true
|
||||||
ignore: ['/test*','/modular']
|
ignore: ['/test*','/modular']
|
||||||
|
|||||||
@@ -69,6 +69,18 @@ form:
|
|||||||
type: bool
|
type: bool
|
||||||
help: Show the beta warning message on the dashboard
|
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:
|
session.timeout:
|
||||||
type: text
|
type: text
|
||||||
size: small
|
size: small
|
||||||
|
|||||||
@@ -402,7 +402,9 @@ $(function () {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (GravAdmin.config.enable_auto_updates_check === '1') {
|
||||||
GPMRefresh();
|
GPMRefresh();
|
||||||
|
}
|
||||||
|
|
||||||
function reIndex (collection) {
|
function reIndex (collection) {
|
||||||
var holder = collection.find('[data-collection-holder]'),
|
var holder = collection.find('[data-collection-holder]'),
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
window.GravAdmin = window.GravAdmin || {};
|
window.GravAdmin = window.GravAdmin || {};
|
||||||
window.GravAdmin.config = {
|
window.GravAdmin.config = {
|
||||||
base_url_relative: '{{ base_url_relative }}',
|
base_url_relative: '{{ base_url_relative }}',
|
||||||
param_sep: '{{ config.system.param_sep }}'
|
param_sep: '{{ config.system.param_sep }}',
|
||||||
|
enable_auto_updates_check: '{{ config.plugins.admin.enable_auto_updates_check }}'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user