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

Commit

Permalink
don't default empty title to the url
Browse files Browse the repository at this point in the history
auditors: @bbondy
  • Loading branch information
bridiver committed Aug 27, 2016
1 parent 0c72d33 commit d5c41e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/components/addEditBookmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class AddEditBookmark extends ImmutableComponent {
if (this.props.currentDetail.get('customTitle') !== undefined) {
return this.props.currentDetail.get('customTitle')
}
return this.props.currentDetail.get('title') || this.props.currentDetail.get('location')
return this.props.currentDetail.get('title') || ''
}
render () {
return <Dialog onHide={this.onClose} isClickDismiss>
Expand Down
4 changes: 2 additions & 2 deletions test/components/bookmarksTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ describe('bookmarks', function () {
.waitForVisible(saveButton)
})

it('fills in the url for the title field', function * () {
it('leaves the title field blank', function * () {
yield this.app.client
.waitForExist('#bookmarkName input')
.getValue('#bookmarkName input').should.eventually.be.equal(this.page1Url)
.getValue('#bookmarkName input').should.eventually.be.equal('')
})

it('fills in the url field', function * () {
Expand Down

1 comment on commit d5c41e3

@bbondy
Copy link
Member

@bbondy bbondy commented on d5c41e3 Aug 27, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Please sign in to comment.