fix: alt-click does not work correctly with search (#196)

fixes #196
This commit is contained in:
Joxit 2021-06-23 20:42:48 +02:00
parent a19c992d5a
commit b97ee4bc60
No known key found for this signature in database
GPG Key ID: F526592B8E012263
3 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "docker-registry-ui",
"version": "2.0.2",
"version": "2.0.3",
"scripts": {
"start": "ROLLUP_SERVE=true rollup -c -w",
"build": "rollup -c",

View File

@ -143,7 +143,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
onRemoveImageHeaderChange(checked, event) {
if (event.altKey === true) {
const tags = getPage(this.props.tags, this.props.page);
tags.forEach(tag => this.state.toDelete.add(tag));
tags.filter(image => matchSearch(this.props.filterResults, image.tag))
.forEach(tag => this.state.toDelete.add(tag));
this.update({
multiDelete: true,
toDelete: this.state.toDelete