diff --git a/libs/remix-ui/git/src/components/navigation/commitdetails.tsx b/libs/remix-ui/git/src/components/navigation/commitdetails.tsx index a6dcd2434a..1cae572a00 100644 --- a/libs/remix-ui/git/src/components/navigation/commitdetails.tsx +++ b/libs/remix-ui/git/src/components/navigation/commitdetails.tsx @@ -5,12 +5,12 @@ import { CommitSummary } from "../panels/commits/commitsummary"; import { ReadCommitResult } from "isomorphic-git" interface CommitDetailsNavigationProps { - commit: ReadCommitResult, - checkout: (oid: string) => void - eventKey: string - activePanel: string - callback: (eventKey: string) => void - isAheadOfRepo: boolean + commit: ReadCommitResult, + checkout: (oid: string) => void + eventKey: string + activePanel: string + callback: (eventKey: string) => void + isAheadOfRepo: boolean } export const CommitDetailsNavigation = (props: CommitDetailsNavigationProps) => { @@ -25,12 +25,12 @@ export const CommitDetailsNavigation = (props: CommitDetailsNavigationProps) => } return ( <> -
handleClick()} role={'button'} className={`pointer mb-2 mt-2 w-100 d-flex flex-row commit-navigation ${isAheadOfRepo? 'text-success':''}`}> +
handleClick()} role={'button'} className={`pointer mb-2 mt-2 w-100 d-flex flex-row commit-navigation ${isAheadOfRepo ? 'text-success' : ''}`}> { activePanel === eventKey ? : } - +
); diff --git a/libs/remix-ui/git/src/components/panels/commits/commitsummary.tsx b/libs/remix-ui/git/src/components/panels/commits/commitsummary.tsx index 271b345d42..10922ac105 100644 --- a/libs/remix-ui/git/src/components/panels/commits/commitsummary.tsx +++ b/libs/remix-ui/git/src/components/panels/commits/commitsummary.tsx @@ -10,10 +10,11 @@ import { gitPluginContext } from "../../gitui"; export interface CommitSummaryProps { commit: ReadCommitResult; checkout: (oid: string) => void; + isAheadOfRepo: boolean } export const CommitSummary = (props: CommitSummaryProps) => { - const { commit, checkout } = props; + const { commit, checkout, isAheadOfRepo } = props; const context = React.useContext(gitPluginContext) const getDate = (commit: ReadCommitResult) => { @@ -60,7 +61,7 @@ export const CommitSummary = (props: CommitSummaryProps) => {
{commit.commit.author.name || ""} {getDate(commit)} - {getRemote() && getRemote()?.url && openRemote()}>} + {getRemote() && getRemote()?.url && !isAheadOfRepo && openRemote()}>} ) } \ No newline at end of file