mirror of https://github.com/Jackett/Jackett
GUI: allow dismissal of external-access-warning. resolves #15260
This commit is contained in:
parent
dc5fc1ffad
commit
35be987328
|
@ -147,7 +147,7 @@ function loadJackettSettings() {
|
||||||
$("#can-upgrade-from-mono").show();
|
$("#can-upgrade-from-mono").show();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.external != null && data.external === true && data.password === '') {
|
if (data.external != null && data.external === true && data.password === '' && !localStorage.getItem('external-access-warning-hidden')) {
|
||||||
$("#warning-external-access").show();
|
$("#warning-external-access").show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1477,6 +1477,15 @@ function bindUIButtons() {
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#remind-external-access-button').click(function () {
|
||||||
|
$("#warning-external-access").hide();
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#dismiss-external-access-button').click(function () {
|
||||||
|
localStorage.setItem('external-access-warning-hidden', true);
|
||||||
|
$("#warning-external-access").hide();
|
||||||
|
});
|
||||||
|
|
||||||
$('#api-key-copy-button').click(function () {
|
$('#api-key-copy-button').click(function () {
|
||||||
var apiKey = api.key;
|
var apiKey = api.key;
|
||||||
if (apiKey !== null || apiKey !== undefined) {
|
if (apiKey !== null || apiKey !== undefined) {
|
||||||
|
|
|
@ -53,6 +53,12 @@
|
||||||
<div id="warning-external-access" hidden class="alert alert-danger text-center" role="alert">
|
<div id="warning-external-access" hidden class="alert alert-danger text-center" role="alert">
|
||||||
<strong>
|
<strong>
|
||||||
<span class="glyphicon glyphicon-alert"></span> Security Risk: Your instance has external access enabled without using an admin password. <span class="glyphicon glyphicon-alert"></span>
|
<span class="glyphicon glyphicon-alert"></span> Security Risk: Your instance has external access enabled without using an admin password. <span class="glyphicon glyphicon-alert"></span>
|
||||||
|
<button id="remind-external-access-button" title="Remind me again later" class="btn btn-success btn-xs">
|
||||||
|
<span class="glyphicon glyphicon-hourglass" aria-hidden="true"></span>
|
||||||
|
</button>
|
||||||
|
<button id="dismiss-external-access-button" title="Do not show again" class="btn btn-danger btn-xs">
|
||||||
|
<span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
|
||||||
|
</button>
|
||||||
</strong>
|
</strong>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -787,6 +793,6 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/javascript" src="../libs/api.js?changed=2017083001"></script>
|
<script type="text/javascript" src="../libs/api.js?changed=2017083001"></script>
|
||||||
<script type="text/javascript" src="../custom.js?changed=20240229v1"></script>
|
<script type="text/javascript" src="../custom.js?changed=20240420v1"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue