Update JS dependencies, add new eslint rules (#24597)
- Update all JS dependencies - Enable new eslint rules, fix issue (some via autofix) - Fix some missed eslint rule renames from [unicorn v25](https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v25.0.0) - Tested Monaco, Katex, Swagger UI --------- Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
1dd83dbb91
commit
d5b2bf9044
11 changed files with 667 additions and 528 deletions
|
@ -32,17 +32,14 @@ function initTagNameEditor() {
|
|||
|
||||
document.getElementById('tag-name').addEventListener('keyup', (e) => {
|
||||
const value = e.target.value;
|
||||
const tagHelper = document.getElementById('tag-helper');
|
||||
if (existingTags.includes(value)) {
|
||||
// If the tag already exists, hide the target branch selector.
|
||||
hideElem('#tag-target-selector');
|
||||
document.getElementById('tag-helper').innerText = existingTagHelperText;
|
||||
tagHelper.textContent = existingTagHelperText;
|
||||
} else {
|
||||
showElem('#tag-target-selector');
|
||||
if (value) {
|
||||
document.getElementById('tag-helper').innerText = newTagHelperText;
|
||||
} else {
|
||||
document.getElementById('tag-helper').innerText = defaultTagHelperText;
|
||||
}
|
||||
tagHelper.textContent = value ? newTagHelperText : defaultTagHelperText;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue