forgejo/web_src/js/features
zeripath b56d269cf8
Prevent NPE if trying to restore an already restored deleted branch () ()
Backport 

If a deleted-branch has already been restored, a request to restore it
again will cause a NPE. This PR adds detection for this case, but also
disables buttons when they're clicked in order to help prevent
accidental repeat requests.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-11-25 17:28:03 -06:00
..
admin
comp
aria.js
aria.md
clipboard.js
codeeditor.js
colorpicker.js
common-global.js Prevent NPE if trying to restore an already restored deleted branch () () 2022-11-25 17:28:03 -06:00
common-issue.js
common-organization.js
contextpopup.js
dropzone.js
emoji.js
eventsource.sharedworker.js
file-fold.js
formatting.js
heatmap.js
imagediff.js
install.js
mcaptcha.js
notification.js
org-team.js
pull-view-file.js
repo-branch.js
repo-code.js
repo-code.test.js
repo-commit.js
repo-common.js
repo-diff-filetree.js
repo-diff.js
repo-editor.js
repo-findfile.js
repo-findfile.test.js
repo-graph.js
repo-home.js
repo-issue-content.js
repo-issue-pr-form.js
repo-issue.js
repo-legacy.js
repo-migrate.js
repo-migration.js
repo-projects.js
repo-release.js
repo-settings.js
repo-template.js
repo-unicode-escape.js
repo-wiki.js
serviceworker.js
sshkey-helper.js
stopwatch.js
tablesort.js
tribute.js
user-auth-webauthn.js
user-auth.js
user-settings.js