[WEB-999] chore: inbox issue bug fixes and improvement (#4188)
* chore: duplicate inbox issue header improvement * chore: snooze inbox issue header action improvement * fix: project inbox exception error * chore: inbox issue modal improvement * chore: code refactor * chore: Updated the inbox issue mutation --------- Co-authored-by: guru_sainath <gurusainath007@gmail.com>
This commit is contained in:
parent
8454e4f1e0
commit
7a4ee509da
8 changed files with 34 additions and 32 deletions
|
|
@ -25,6 +25,11 @@ const ProjectInboxPage: NextPageWithLayout = observer(() => {
|
|||
const { currentProjectDetails } = useProject();
|
||||
const { currentTab, handleCurrentTab } = useProjectInbox();
|
||||
|
||||
useEffect(() => {
|
||||
if (navigationTab && currentTab != navigationTab)
|
||||
handleCurrentTab(navigationTab === "open" ? EInboxIssueCurrentTab.OPEN : EInboxIssueCurrentTab.CLOSED);
|
||||
}, [currentTab, navigationTab, handleCurrentTab]);
|
||||
|
||||
// No access to inbox
|
||||
if (currentProjectDetails?.inbox_view === false)
|
||||
return (
|
||||
|
|
@ -39,11 +44,6 @@ const ProjectInboxPage: NextPageWithLayout = observer(() => {
|
|||
// derived values
|
||||
const pageTitle = currentProjectDetails?.name ? `${currentProjectDetails?.name} - Inbox` : "Plane - Inbox";
|
||||
|
||||
useEffect(() => {
|
||||
if (navigationTab && currentTab != navigationTab)
|
||||
handleCurrentTab(navigationTab === "open" ? EInboxIssueCurrentTab.OPEN : EInboxIssueCurrentTab.CLOSED);
|
||||
}, [currentTab, navigationTab, handleCurrentTab]);
|
||||
|
||||
if (!workspaceSlug || !projectId) return <></>;
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue