This commit is contained in:
Ad Schellevis 2019-06-20 17:39:32 +02:00
parent 9dcacab209
commit b877610296
2 changed files with 11 additions and 0 deletions

View File

@ -270,6 +270,7 @@ if (isset($config['hasync']) && is_array($config['hasync'])) {
$section_cnf['synchronizeusers'] = 'system.user,system.group';
$section_cnf['synchronizeauthservers'] = 'system.authserver';
$section_cnf['synchronizeschedules'] = 'schedules';
$section_cnf['synchronizewidgets'] = 'widgets';
foreach (plugins_xmlrpc_sync() as $syncid => $syncconf) {
$section_cnf['synchronize'.$syncid] = $syncconf['section'];

View File

@ -45,6 +45,7 @@ $checkbox_names = array(
'synchronizestaticroutes',
'synchronizeusers',
'synchronizevirtualip',
'synchronizewidgets',
);
$syncplugins = plugins_xmlrpc_sync();
@ -241,6 +242,15 @@ include("head.inc");
</div>
</td>
</tr>
<tr>
<td><a id="help_for_synchronizewidgets" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Dashboard') ?></td>
<td>
<input type="checkbox" name="synchronizewidgets" value="on" <?=!empty($pconfig['synchronizewidgets']) ? "checked=\"checked\"" : "";?> />
<div class="hidden" data-for="help_for_synchronizewidgets">
<?=gettext('Synchronize dashboard widgets.') ?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_synchronizeusers" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Users and Groups') ?></td>
<td>