chore: add issue option removed from subscribed issue page (#2088)
* chore: condition for subscribed page add issue option * chore: condition for subscribed page add issue option
This commit is contained in:
parent
9423472838
commit
71394d3316
7 changed files with 37 additions and 6 deletions
|
|
@ -223,6 +223,15 @@ export const ProfileIssuesView = () => {
|
|||
Object.keys(filtersToDisplay).length > 0 &&
|
||||
nullFilters.length !== Object.keys(filtersToDisplay).length;
|
||||
|
||||
const isSubscribedIssuesRoute = router.pathname.includes("subscribed");
|
||||
const isMySubscribedIssues =
|
||||
(filters.subscriber &&
|
||||
filters.subscriber.length > 0 &&
|
||||
router.pathname.includes("my-issues")) ??
|
||||
false;
|
||||
|
||||
const disableAddIssueOption = isSubscribedIssuesRoute || isMySubscribedIssues;
|
||||
|
||||
return (
|
||||
<>
|
||||
<CreateUpdateIssueModal
|
||||
|
|
@ -292,6 +301,7 @@ export const ProfileIssuesView = () => {
|
|||
handleIssueAction={handleIssueAction}
|
||||
openIssuesListModal={null}
|
||||
removeIssue={null}
|
||||
disableAddIssueOption={disableAddIssueOption}
|
||||
trashBox={trashBox}
|
||||
setTrashBox={setTrashBox}
|
||||
viewProps={{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue