Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/items/commit-preview-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ export default class CommitPreviewItem extends React.Component {
}

getTitle() {
return 'Commit preview';
return 'Staged Changes';
}

getIconName() {
return 'git-commit';
return 'tasklist';
}

getWorkingDirectory() {
Expand Down
6 changes: 4 additions & 2 deletions styles/commit-view.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

.github-CommitView {
padding: @component-padding;
border-top: 1px solid @base-border-color;
flex: 0 0 auto;

&-editor {
Expand Down Expand Up @@ -82,7 +81,10 @@
&-buttonWrapper {
align-items: center;
display: flex;
margin-bottom: 10px;
margin: 0 -@component-padding @component-padding -@component-padding;
padding: @component-padding;
padding-top: 0;
border-bottom: 1px solid @base-border-color;
}

&-coAuthorEditor {
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/root-controller.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ describe('RootController', function() {
const uri = CommitPreviewItem.buildURI(workdir);
const item = await atomEnv.workspace.open(uri);

assert.strictEqual(item.getTitle(), 'Commit preview');
assert.strictEqual(item.getTitle(), 'Staged Changes');
assert.lengthOf(wrapper.update().find('CommitPreviewItem'), 1);
});

Expand Down
4 changes: 2 additions & 2 deletions test/items/commit-preview-item.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ describe('CommitPreviewItem', function() {
const wrapper = mount(buildPaneApp());
const item = await open(wrapper);

assert.strictEqual(item.getTitle(), 'Commit preview');
assert.strictEqual(item.getIconName(), 'git-commit');
assert.strictEqual(item.getTitle(), 'Staged Changes');
assert.strictEqual(item.getIconName(), 'tasklist');
});

it('terminates pending state', async function() {
Expand Down