Skip to content

Commit

Permalink
Merge pull request #5432 from robinroloff/bugfix/listview
Browse files Browse the repository at this point in the history
BUGFIX: Fixed table view of asset editor
  • Loading branch information
dlubitz authored Jan 17, 2025
2 parents 4c69884 + 047f598 commit 3028ea8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Neos.Media.Browser/Resources/Public/JavaScript/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,25 @@ window.addEventListener('DOMContentLoaded', () => {
const assets = document.querySelectorAll('[data-asset-identifier]');
assets.forEach((asset) => {
asset.addEventListener('click', (e) => {
const assetLink = e.target.closest('a[data-asset-identifier], button[data-asset-identifier]');
if (!assetLink) {
if(e.target.closest('.neos-action')) {
return;
}
const assetLink = e.currentTarget;

const localAssetIdentifier = asset.dataset.localAssetIdentifier;
const localAssetIdentifier = assetLink.dataset.localAssetIdentifier;
if (localAssetIdentifier !== '' && !NeosCMS.Helper.isNil(localAssetIdentifier)) {
NeosMediaBrowserCallbacks.assetChosen(localAssetIdentifier);
} else {
if (asset.dataset.importInProcess !== 'true') {
asset.dataset.importInProcess = 'true';
if (assetLink.dataset.importInProcess !== 'true') {
assetLink.dataset.importInProcess = 'true';
const message = NeosCMS.I18n.translate(
'assetImport.importInfo',
'Asset is being imported. Please wait.',
'Neos.Media.Browser'
);
NeosCMS.Notification.ok(message);

importAsset(asset);
importAsset(assetLink);
} else {
const message = NeosCMS.I18n.translate(
'assetImport.importInProcess',
Expand Down

0 comments on commit 3028ea8

Please sign in to comment.