diff options
author | Simon Rettberg | 2024-01-18 15:29:48 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-01-18 15:29:48 +0100 |
commit | fd386a84a1a4c6dfbd0316711ff22aa99b8b8a09 (patch) | |
tree | 5c11c8c7fe5e637e6182ebccbec52a544c09ccaa /modules-available/dnbd3/page.inc.php | |
parent | [locations/statistics] More type safety, array key checks (diff) | |
download | slx-admin-fd386a84a1a4c6dfbd0316711ff22aa99b8b8a09.tar.gz slx-admin-fd386a84a1a4c6dfbd0316711ff22aa99b8b8a09.tar.xz slx-admin-fd386a84a1a4c6dfbd0316711ff22aa99b8b8a09.zip |
[dnbd3] Add warning if proxy servers exist but DNBD3 is disabled for VMs
Diffstat (limited to 'modules-available/dnbd3/page.inc.php')
-rw-r--r-- | modules-available/dnbd3/page.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/dnbd3/page.inc.php b/modules-available/dnbd3/page.inc.php index ffaa995e..6b0df8e4 100644 --- a/modules-available/dnbd3/page.inc.php +++ b/modules-available/dnbd3/page.inc.php @@ -257,7 +257,8 @@ class Page_Dnbd3 extends Page 'enabled_checked_s' => Dnbd3::isEnabled() ? 'checked' : '', 'nfs_checked_s' => Dnbd3::hasNfsFallback() ? 'checked' : '', 'local_checked_s' => Dnbd3::preferLocal() ? 'checked' : '', - 'rebootcontrol' => Module::isAvailable('rebootcontrol', false) + 'rebootcontrol' => Module::isAvailable('rebootcontrol', false), + 'show_enable_warning' => count($servers) > 1 && !Dnbd3::isEnabled(), ); Permission::addGlobalTags($data['perms'], null, ['view.details', 'refresh', 'toggle-usage', 'configure.proxy', 'configure.external']); Render::addTemplate('page-serverlist', $data); |