Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 15d60a5

Browse files
committed
Pass props in GitTabView
1 parent 7efaa8c commit 15d60a5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

lib/views/git-tab-view.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export default class GitTabView extends React.Component {
5454
tooltips: PropTypes.object.isRequired,
5555

5656
toggleIdentityEditor: PropTypes.func.isRequired,
57+
setLocalIdentity: PropTypes.func.isRequired,
58+
setGlobalIdentity: PropTypes.func.isRequired,
5759
closeIdentityEditor: PropTypes.func.isRequired,
5860
openInitializeDialog: PropTypes.func.isRequired,
5961
abortMerge: PropTypes.func.isRequired,
@@ -267,6 +269,9 @@ export default class GitTabView extends React.Component {
267269
<GitIdentityView
268270
usernameBuffer={this.props.usernameBuffer}
269271
emailBuffer={this.props.emailBuffer}
272+
canWriteLocal={this.props.repository.isPresent()}
273+
setLocal={this.props.setLocalIdentity}
274+
setGlobal={this.props.setGlobalIdentity}
270275
close={this.props.closeIdentityEditor}
271276
/>
272277
);

test/fixtures/props/git-tab-props.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ export async function gitTabViewProps(atomEnv, repository, overrides = {}) {
101101

102102
toggleIdentityEditor: () => {},
103103
closeIdentityEditor: () => {},
104+
setLocalIdentity: () => {},
105+
setGlobalIdentity: () => {},
104106
openInitializeDialog: () => {},
105107
abortMerge: () => {},
106108
commit: () => {},

0 commit comments

Comments
 (0)