mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
parent
6b53d263fe
commit
b6df0209ba
@ -43,7 +43,7 @@ $(document).ready(function() {
|
|||||||
success: function (response, status) {
|
success: function (response, status) {
|
||||||
if (response.plaintext) {
|
if (response.plaintext) {
|
||||||
console.log("Secret retrieved successfully");
|
console.log("Secret retrieved successfully");
|
||||||
$('#secret_' + secret_id).html(response.plaintext);
|
$('#secret_' + secret_id).text(response.plaintext);
|
||||||
$('button.unlock-secret[secret-id=' + secret_id + ']').hide();
|
$('button.unlock-secret[secret-id=' + secret_id + ']').hide();
|
||||||
$('button.lock-secret[secret-id=' + secret_id + ']').show();
|
$('button.lock-secret[secret-id=' + secret_id + ']').show();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user