Skip to content

Commit 2fb4287

Browse files
committed
renamed to checkIsContainer
1 parent a6adb93 commit 2fb4287

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/bundle/Resources/public/js/scripts/admin.location.view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isContainer } from './helpers/content.type.helper';
1+
import { checkIsContainer } from './helpers/content.type.helper';
22

33
(function (global, doc, localStorage, bootstrap, React, ReactDOMClient, ibexa, Routing, Translator) {
44
const SELECTOR_MODAL_BULK_ACTION_FAIL = '#bulk-action-failed-modal';
@@ -183,7 +183,7 @@ import { isContainer } from './helpers/content.type.helper';
183183
onPopupClose: (itemsUploaded) => itemsUploaded.length && global.location.reload(true),
184184
contentCreatePermissionsConfig: JSON.parse(container.dataset.mfuCreatePermissionsConfig),
185185
contentTypesMap: mfuContentTypesMap,
186-
withUploadButton: isContainer(mfuContainer.dataset.parentContentTypeIdentifier),
186+
withUploadButton: checkIsContainer(mfuContainer.dataset.parentContentTypeIdentifier),
187187
},
188188
},
189189
],

src/bundle/Resources/public/js/scripts/helpers/content.type.helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const getContentTypeDataByHref = (contentTypeHref) => {
117117
return contentTypesDataMapByHref[contentTypeHref];
118118
};
119119

120-
const isContainer = (contentTypeIdentifier) => {
120+
const checkIsContainer = (contentTypeIdentifier) => {
121121
if (!contentTypesDataMap) {
122122
contentTypesDataMap = createContentTypeDataMap();
123123
}
@@ -135,5 +135,5 @@ export {
135135
getContentTypeDataByHref,
136136
getContentTypeNameByHref,
137137
getContentTypeIdentifierByHref,
138-
isContainer,
138+
checkIsContainer,
139139
};

0 commit comments

Comments
 (0)