mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-29 22:25:59 +00:00
Update dependency eslint-plugin-unicorn to v61 (forgejo) (#9198)
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org> Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
This commit is contained in:
parent
b602d58161
commit
bafdd4a56e
6 changed files with 9 additions and 20 deletions
|
@ -248,11 +248,7 @@ export async function initDropzone(dropzoneEl, zone = undefined) {
|
|||
file.previewTemplate.append(copyLinkElement);
|
||||
};
|
||||
const updateDropzoneState = () => {
|
||||
if (dropzoneEl.querySelector('.dz-preview')) {
|
||||
dropzoneEl.classList.add('dz-started');
|
||||
} else {
|
||||
dropzoneEl.classList.remove('dz-started');
|
||||
}
|
||||
dropzoneEl.classList.toggle('dz-started', dropzoneEl.querySelector('.dz-preview'));
|
||||
};
|
||||
|
||||
const dz = await createDropzone(dropzoneEl, {
|
||||
|
|
|
@ -13,11 +13,7 @@ function updateExclusiveLabelEdit(form) {
|
|||
if (isExclusiveScopeName(nameInput.value)) {
|
||||
exclusiveField?.classList.remove('muted');
|
||||
exclusiveField?.removeAttribute('aria-disabled');
|
||||
if (exclusiveCheckbox.checked && exclusiveCheckbox.getAttribute('data-exclusive-warn')) {
|
||||
exclusiveWarning?.classList.remove('tw-hidden');
|
||||
} else {
|
||||
exclusiveWarning?.classList.add('tw-hidden');
|
||||
}
|
||||
exclusiveWarning?.classList.toggle('tw-hidden', !(exclusiveCheckbox.checked && exclusiveCheckbox.getAttribute('data-exclusive-warn')));
|
||||
} else {
|
||||
exclusiveField?.classList.add('muted');
|
||||
exclusiveField?.setAttribute('aria-disabled', 'true');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue