Skip to content

Commit a17fce3

Browse files
authored
Revert "Fix delete u2f keys bug (#18042)" (#18107)
This reverts commit 91f5be8.
1 parent 71e1ebf commit a17fce3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

templates/user/settings/security_u2f.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{{range .U2FRegistrations}}
99
<div class="item">
1010
<div class="right floated content">
11-
<button class="ui red tiny button delete-button" modal-id="delete-registration" data-url="{{$.Link}}/u2f/delete" data-id="{{.ID}}">
11+
<button class="ui red tiny button delete-button" id="delete-registration" data-url="{{$.Link}}/u2f/delete" data-id="{{.ID}}">
1212
{{$.i18n.Tr "settings.delete_key"}}
1313
</button>
1414
</div>

web_src/js/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2959,8 +2959,8 @@ $(() => {
29592959
function showDeletePopup() {
29602960
const $this = $(this);
29612961
let filter = '';
2962-
if ($this.attr('modal-id')) {
2963-
filter += `#${$this.attr('modal-id')}`;
2962+
if ($this.attr('id')) {
2963+
filter += `#${$this.attr('id')}`;
29642964
}
29652965

29662966
const dialog = $(`.delete.modal${filter}`);

0 commit comments

Comments
 (0)