Skip to content

Commit

Permalink
NB-57 refresh the page when session key is activated
Browse files Browse the repository at this point in the history
  • Loading branch information
kprince28 committed Jul 16, 2024
1 parent 4002f29 commit efb744d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions netbox_secrets/project-static/src/secrets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ function requestSessionKey(privateKey: string) {
} else {
// If the response received was not an error, show the user a success message.
const toast = createToast('success', 'Session Key Received', 'You may now unlock secrets.');
window.location.reload();
toast.show();
}
} else {
Expand Down
8 changes: 4 additions & 4 deletions netbox_secrets/static/netbox_secrets/secrets.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit efb744d

Please sign in to comment.