|
|
@ -13,8 +13,13 @@ export const Fetch = () => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
<div className="btn-group w-100" role="group"> |
|
|
|
<div className="btn-group w-100" role="group"> |
|
|
|
<GitUIButton disabledCondition={fetchIsDisabled()} type="button" onClick={async () => actions.fetch()} className="btn btn-primary mr-1 w-50"><div>Fetch {context.upstream && context.upstream.name}</div></GitUIButton> |
|
|
|
<GitUIButton disabledCondition={fetchIsDisabled()} type="button" onClick={async () => actions.fetch({ |
|
|
|
<GitUIButton disabledCondition={fetchIsDisabled()} type="button" onClick={async () => actions.fetch(null, null, context.currentBranch.name, null, true )} className="btn btn-primary w-50 long-and-truncated">Fetch {context.currentBranch.name}</GitUIButton> |
|
|
|
remote: context.upstream, |
|
|
|
|
|
|
|
})} className="btn btn-primary mr-1 w-50"><div>Fetch {context.upstream && context.upstream.name}</div></GitUIButton> |
|
|
|
|
|
|
|
<GitUIButton disabledCondition={fetchIsDisabled()} type="button" onClick={async () => actions.fetch({ |
|
|
|
|
|
|
|
remote: context.upstream, |
|
|
|
|
|
|
|
ref: context.currentBranch |
|
|
|
|
|
|
|
})} className="btn btn-primary w-50 long-and-truncated">Fetch {context.currentBranch.name}</GitUIButton> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</>) |
|
|
|
</>) |
|
|
|
} |
|
|
|
} |