Skip to content

Commit

Permalink
update path
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshj01 committed Jun 18, 2024
1 parent dc5bec5 commit 7f9b8d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/(main)/_components/Pastelog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function Pastelog() {
return;
}
// Push the route and then reload the page
router.push(`/logs/${id}`);
router.push(`/logs/publish/${id}`);
setLoading(false);
}

Expand Down
4 changes: 3 additions & 1 deletion src/app/(main)/_components/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ const Preview = ({ logId }: { logId: string }) => {

function More() {
const options = ['Image', 'Text', 'Share'];
// if (!isPublishRoute) {
// options.push('Share');
// }
if (!logService.isLogPresentLocally(logId)) {

options.push('Save');
}
return (<PSDropdown
Expand Down

0 comments on commit 7f9b8d3

Please sign in to comment.