@topconsultnpm/sdkui-react-beta 6.12.147 → 6.12.148
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -204,8 +204,10 @@ const TMFileManager = (props) => {
|
|
204
204
|
const onContextMenu = (event) => {
|
205
205
|
if (event === undefined)
|
206
206
|
return;
|
207
|
-
|
208
|
-
|
207
|
+
if (filteredFileItems.length === 0) {
|
208
|
+
event.preventDefault();
|
209
|
+
setViewAnchor(event.currentTarget);
|
210
|
+
}
|
209
211
|
};
|
210
212
|
// Main render of the file manager component with a split layout
|
211
213
|
return _jsxs("div", { style: { height: "100%", width: "100%" }, children: [!isMobile && _jsxs("div", { style: { flexDirection: "column", height: "100%", width: "100%", }, children: [_jsx(Toolbar, { style: { backgroundColor: '#f4f4f4', border: '2px solid #ccc', borderRadius: '8px', boxShadow: '0 4px 8px rgba(0,0,0,0.1)', height: "40px" }, children: _jsx(ToolbarItem, { location: "before", children: _jsx("div", { style: { paddingLeft: "5px", paddingRight: "5px" }, children: _jsx(TMButton, { caption: isLeftPanelCollapsed ? SDKUI_Localizator.ShowLeftPanel : SDKUI_Localizator.HideLeftPanel, btnStyle: 'toolbar', color: 'primaryOutline', icon: isLeftPanelCollapsed ? _jsx(IconHide, {}) : _jsx(IconShow, {}), onClick: () => setIsLeftPanelCollapsed(prev => !prev) }) }) }) }), _jsx("div", { style: {
|