feat(ui): clear panel form inputs when closed

This commit replaces the SSH key-specific code in favor of resetting
panel forms when closed, which thus carries the same behavior over to
the GPG key field.
This commit is contained in:
Jordan Atwood 2025-08-29 14:29:18 -07:00
commit 4dcec32505
No known key found for this signature in database
GPG key ID: 615A619C2D73A6DF
5 changed files with 29 additions and 12 deletions

View file

@ -49,7 +49,7 @@ import {initAdminEmails} from './features/admin/emails.js';
import {initAdminCommon} from './features/admin/common.js';
import {initRepoTemplateSearch} from './features/repo-template.js';
import {initRepoCodeView} from './features/repo-code.js';
import {initSshKeyFormParser, initSshKeyCancelButton} from './features/sshkey-helper.js';
import {initSshKeyFormParser} from './features/sshkey-helper.js';
import {initRepoArchiveLinks} from './features/repo-common.js';
import {initRepoMigrationStatusChecker} from './features/repo-migrate.js';
import {
@ -122,7 +122,6 @@ onDomReady(() => {
initMarkupAnchors();
initMarkupContent();
initSshKeyFormParser();
initSshKeyCancelButton();
initStopwatch();
initTableSort();
initAutoFocusEnd();