mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
add clamav as option
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
31f86c1570
commit
38726f039a
13 changed files with 155 additions and 7 deletions
4
php/public/disable-clamav.js
Normal file
4
php/public/disable-clamav.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
document.addEventListener("DOMContentLoaded", function(event) {
|
||||
// Clamav
|
||||
document.getElementById("clamav").disabled = true;
|
||||
});
|
||||
|
|
@ -85,6 +85,8 @@ $app->get('/containers', function ($request, $response, $args) use ($container)
|
|||
'last_backup_time' => $configurationManager->GetLastBackupTime(),
|
||||
'backup_times' => $configurationManager->GetBackupTimes(),
|
||||
'current_channel' => $dockerActionManger->GetCurrentChannel(),
|
||||
'is_x64_platform' => $configurationManager->isx64Platform(),
|
||||
'is_clamav_enabled' => $configurationManager->isClamavEnabled(),
|
||||
]);
|
||||
})->setName('profile');
|
||||
$app->get('/login', function ($request, $response, $args) use ($container) {
|
||||
|
|
|
|||
14
php/public/options-form-submit.js
Normal file
14
php/public/options-form-submit.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
function makeOptionsFormSubmitVisible() {
|
||||
var optionsFormSubmit = document.getElementById("options-form-submit");
|
||||
optionsFormSubmit.style.display = 'block';
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function(event) {
|
||||
// handle submit button for options form
|
||||
var optionsFormSubmit = document.getElementById("options-form-submit");
|
||||
optionsFormSubmit.style.display = 'none';
|
||||
|
||||
// Clamav
|
||||
var clamav = document.getElementById("clamav");
|
||||
clamav.addEventListener('change', makeOptionsFormSubmitVisible);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue