Use correct classnames for showing/hiding edit button on chooser widget

Fixes #9008
pull/9020/head
Matt Westcott 2022-08-16 15:46:27 +01:00 zatwierdzone przez LB (Ben Johnston)
rodzic 3bf4a0693c
commit cc4675aa5e
3 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -167,6 +167,7 @@ Changelog
* Fix: Ensure `DocumentChooserBlock` can be deconstructed for migrations (Matt Westcott)
* Fix: Resolve frontent console error and unintented console logging issues (Matt Wescott, Paarth Agarwal)
* Fix: Resolve issue with sites that have not yet migrated away from `BaseSetting` when upgrading to Wagtail 4.0 (Stefan Hammer)
* Fix: Use correct classnames for showing/hiding edit button on chooser widget (Matt Wescott)
3.0.1 (16.06.2022)

Wyświetl plik

@ -94,9 +94,9 @@ export class Chooser {
const editUrl = newState[this.editUrlStateKey];
if (editUrl) {
this.editLink.setAttribute('href', editUrl);
this.editLink.classList.remove('u-hidden');
this.editLink.classList.remove('w-hidden');
} else {
this.editLink.classList.add('u-hidden');
this.editLink.classList.add('w-hidden');
}
}
}

Wyświetl plik

@ -224,6 +224,7 @@ The bulk of these enhancements have been from Paarth Agarwal, who has been doing
* Ensure `DocumentChooserBlock` can be deconstructed for migrations (Matt Westcott)
* Resolve frontent console error and unintented console logging issues (Matt Wescott, Paarth Agarwal)
* Resolve issue with sites that have not yet migrated away from `BaseSetting` when upgrading to Wagtail 4.0 (Stefan Hammer)
* Use correct classnames for showing/hiding edit button on chooser widget (Matt Wescott)
## Upgrade considerations