Skip to content

Commit

Permalink
Fix [Artifacts] disable download for not allowed prefixes in artifact…
Browse files Browse the repository at this point in the history
…/dataset/model path (#2486)
  • Loading branch information
Taras-Hlukhovetskyi committed May 30, 2024
1 parent d9ac1cc commit 2742ba1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Datasets/datasets.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ export const generateActionsMenu = (
{
hidden: menuPosition === ACTION_MENU_PARENT_ROW_EXPANDED,
label: 'Download',
disabled: !isTargetPathValid,
icon: <DownloadIcon />,
onClick: dataset => {
dispatch(
Expand Down
1 change: 1 addition & 0 deletions src/components/Files/files.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ export const generateActionsMenu = (
{
label: 'Download',
hidden: menuPosition === ACTION_MENU_PARENT_ROW_EXPANDED,
disabled: !isTargetPathValid,
icon: <DownloadIcon />,
onClick: file => {
dispatch(
Expand Down
1 change: 1 addition & 0 deletions src/components/ModelsPage/Models/models.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ export const generateActionsMenu = (
{
label: 'Download',
hidden: menuPosition === ACTION_MENU_PARENT_ROW_EXPANDED,
disabled: !isTargetPathValid,
icon: <DownloadIcon />,
onClick: model => {
dispatch(
Expand Down

0 comments on commit 2742ba1

Please sign in to comment.