Skip to content

Commit

Permalink
Merge 47722d5 into c8e4440
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrkiger committed Jun 11, 2024
2 parents c8e4440 + 47722d5 commit a45ec8d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion jsapp/js/projects/customViewRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ function CustomViewRoute() {

{selectedAssets.length === 1 && (
<div className={styles.actions}>
<ProjectQuickActions asset={selectedAssets[0]} />
<ProjectQuickActions
asset={selectedAssets[0]}
isProjectView={true}
/>
</div>
)}

Expand Down
5 changes: 4 additions & 1 deletion jsapp/js/projects/myProjectsRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,10 @@ function MyProjectsRoute() {

{selectedAssets.length === 1 && (
<div className={styles.actions}>
<ProjectQuickActions asset={selectedAssets[0]} />
<ProjectQuickActions
asset={selectedAssets[0]}
isProjectView={false}
/>
</div>
)}

Expand Down
3 changes: 2 additions & 1 deletion jsapp/js/projects/projectsTable/projectQuickActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import customViewStore from 'js/projects/customViewStore';

interface ProjectQuickActionsProps {
asset: AssetResponse | ProjectViewAsset;
isProjectView: boolean;
}

/**
Expand Down Expand Up @@ -93,7 +94,7 @@ export default function ProjectQuickActions(props: ProjectQuickActionsProps) {

{/* Share */}
<Button
isDisabled={!isManagingPossible}
isDisabled={!isManagingPossible && !props.isProjectView}
type='bare'
color='storm'
size='s'
Expand Down

0 comments on commit a45ec8d

Please sign in to comment.