Move key forms before list and add cancel button (#17432)

* Move GPG form before list and add cancel button
* Move SSH form before list and add cancel button

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
qwerty287 2021-10-28 12:55:48 +02:00 committed by GitHub
parent 54243eed8d
commit f46e67b519
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 80 additions and 89 deletions

View file

@ -288,8 +288,9 @@ export function initGlobalButtons() {
$($(this).data('panel')).show();
});
$('.hide-panel.button').on('click', function () {
$('.hide-panel.button').on('click', function (event) {
$($(this).data('panel')).hide();
event.preventDefault();
});
$('.show-modal.button').on('click', function () {