add update button for system plugins

This commit is contained in:
Andrew Dolgov 2021-03-03 14:17:55 +03:00
parent 75e659ba65
commit 06cb181f73
1 changed files with 9 additions and 0 deletions

View File

@ -798,6 +798,15 @@ class Pref_Prefs extends Handler_Protected {
<input disabled='1' dojoType='dijit.form.CheckBox' <?= $is_checked ?> type='checkbox'><?= htmlspecialchars($about[1]) ?>
</label>
<?php if ($_SESSION["access_level"] >= 10) { ?>
<button style="display : none"
data-update-btn-for-plugin="<?= htmlspecialchars($name) ?>" dojoType='dijit.form.Button'
onclick='Helpers.Plugins.update("<?= htmlspecialchars($name) ?>")'>
<?= \Controls\icon("update") ?>
<?= __("Update") ?>
</button>
<?php } ?>
<?php if ($about[4] ?? false) { ?>
<button dojoType='dijit.form.Button' class='alt-info'
onclick='window.open("<?= htmlspecialchars($about[4]) ?>")'>