Skip to content

Commit

Permalink
Hook up Product File menu to route
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvire committed Jul 19, 2023
1 parent c9a3cbf commit ff1c1c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useCallback, useEffect, useState } from 'react';
import { useOrbit, useCache, remoteIdentityFrom, attributesFor } from 'react-orbitjs';
import MoreVerticalIcon from '@material-ui/icons/MoreVert';
import { Dropdown } from 'semantic-ui-react';
import { Link } from 'react-router-dom';
import { useTranslations } from '@lib/i18n';
import { useDebounce } from 'use-debounce';

Expand Down Expand Up @@ -99,6 +100,12 @@ export default function ItemActions({ product }) {
/>
);
})}
<Dropdown.Item
as={Link}
to={`/products/${productRemoteId}/files`}
className='capitalize'
text={t('project.productFiles')}
/>
<TransitionDetails product={product} />
<RequireRole roleName={ROLE.OrganizationAdmin}>
<ProductProperties product={product} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export function withData(WrappedComponent) {
(q) => buildFindRecord(q, 'project', id),
buildOptions({
include: [
'products.product-builds.product-artifacts',
'products.product-builds.product-publications',
//'products.product-builds.product-artifacts',
//'products.product-builds.product-publications',
'products.user-tasks.user',
// 'products.user-tasks.product.product-definition.workflow',
'products.product-definition',
Expand Down

0 comments on commit ff1c1c4

Please sign in to comment.