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

Commit

Permalink
Various history fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bbondy committed Aug 23, 2016
1 parent 042af99 commit 57086b8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions js/about/aboutActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ const AboutActions = {
ipc.send(messages.SET_RESOURCE_ENABLED, resourceName, enabled)
},

clearBrowsingDataNow: function () {
ipc.sendToHost(messages.CLEAR_BROWSING_DATA_NOW)
clearBrowsingDataNow: function (clearBrowsingDataDetail) {
ipc.sendToHost(messages.CLEAR_BROWSING_DATA_NOW, clearBrowsingDataDetail)
},

createWallet: function () {
Expand Down
8 changes: 4 additions & 4 deletions js/about/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ require('../../node_modules/font-awesome/css/font-awesome.css')
class HistoryDay extends ImmutableComponent {
navigate (entry) {
aboutActions.newFrame({
location: entry.get('location'),
partitionNumber: entry.get('partitionNumber')
location: entry.location,
partitionNumber: entry.partitionNumber
})
}
render () {
Expand Down Expand Up @@ -125,15 +125,15 @@ class AboutHistory extends React.Component {
})
}
historyDescendingOrder () {
return this.state.history.filter((site) => site.get('tags').isEmpty())
return this.state.history.filter((site) => site.get('lastAccessedTime'))
.sort((left, right) => {
if (left.get('lastAccessedTime') < right.get('lastAccessedTime')) return 1
if (left.get('lastAccessedTime') > right.get('lastAccessedTime')) return -1
return 0
}).slice(-500)
}
clearBrowsingDataNow () {
aboutActions.clearBrowsingDataNow()
aboutActions.clearBrowsingDataNow({browserHistory: true})
}
render () {
return <div className='siteDetailsPage'>
Expand Down
3 changes: 2 additions & 1 deletion js/components/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,8 @@ class Frame extends ImmutableComponent {
}
break
case messages.CLEAR_BROWSING_DATA_NOW:
windowActions.setClearBrowsingDataDetail({})
method = (clearBrowsingDataDetail) =>
windowActions.setClearBrowsingDataDetail(clearBrowsingDataDetail)
break
}
method.apply(this, e.args)
Expand Down
1 change: 0 additions & 1 deletion less/about/history.less
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ body {
margin: 0;
padding: 0;
width: 0;
cursor: pointer;
position: relative;
left: -35px;
}
Expand Down
3 changes: 0 additions & 3 deletions less/sortableTable.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ table.sortableTable {
th {
background: @lightGray;
color: @darkGray;
cursor: pointer;
text-align: left;
font-weight: 300;
padding: 8px;
Expand Down Expand Up @@ -59,13 +58,11 @@ table.sortableTable {
height: 1em;
border-radius: 50%;
box-shadow: 0 0 6px @black25;
cursor: pointer;
}
}
}
}
}
tr.rowHover:hover {
background: #ffcc99;
cursor: pointer;
}

0 comments on commit 57086b8

Please sign in to comment.