mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-04 15:54:48 +01:00
Add Mail-in-a-Box version status check.
This commit is contained in:
committed by
Joshua Tauberer
parent
8c066764d9
commit
1a525df8ad
@@ -43,6 +43,10 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h4>Privacy Setting</h4>
|
||||
<p>By deactivating the advanced privacy feature your Mail-in-a-Box will contact a remote server to check if a new version got released.</p>
|
||||
<p>Advanced Privacy <a onclick="enable_privacy()" href="">On</a> | <a onclick="disable_privacy()" href="">Off</a></p>
|
||||
|
||||
<script>
|
||||
function show_system_status() {
|
||||
$('#system-checks tbody').html("<tr><td colspan='2' class='text-muted'>Loading...</td></tr>")
|
||||
@@ -83,4 +87,16 @@ function show_system_status() {
|
||||
}
|
||||
})
|
||||
}
|
||||
function enable_privacy() {
|
||||
api(
|
||||
"/system/privacy/enable",
|
||||
"Post",
|
||||
{ });
|
||||
}
|
||||
function disable_privacy() {
|
||||
api(
|
||||
"/system/privacy/disable",
|
||||
"Post",
|
||||
{ });
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user