Add button to clear history for one item#260
Add button to clear history for one item#260erayd wants to merge 1 commit intobrowserpass:masterfrom
Conversation
max-baz
left a comment
There was a problem hiding this comment.
Nice idea to place the "clear" button directly in the popup!
| // a new entry was added to the popup matching list, need to refresh the count | ||
| if (!login.inCurrentHost && login.recent.count === 1) { | ||
| // an entry was added / removed to the popup matching list, need to refresh the count | ||
| if (!login.inCurrentHost) { |
There was a problem hiding this comment.
should we maybe use && login.recent.count < 2? in end end badge count changes only when you have just used a new entry, or when you removed it...
| ".part.search input[type='text']" | ||
| ) | ||
| .dispatchEvent(new Event("input")); | ||
| result.doAction("clearRecent"); |
There was a problem hiding this comment.
Pressing on the "Clear usage" button for some reason requires me to touch Yubikey, not sure why, but it definitely shouldn't, as I am not intending to decrypt the password entry... And if I don't touch Yubikey, then the recent will not be cleared 🤔
| @@ -0,0 +1,10 @@ | |||
| <svg id="outline" height="512" viewBox="0 0 512 512" width="512" xmlns="http://www.w3.org/2000/svg"> | |||
| return !this.currentDomainOnly || result.inCurrentHost || result.recent.when; | ||
| }) | ||
| .map(function (result) { | ||
| console.log(result); |
There was a problem hiding this comment.
Probably no need for keeping console.log 🙂
|
HI guys, |
|
@ieggel It probably won't be, as there's another PR currently under review that's making significant changes to the UI rendering. The feature will need to be re-implemented on top of that. |

What
Why