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

Added titles to buttons for a better user experience #232

Merged
merged 2 commits into from
Mar 22, 2018

Conversation

AuspeXeu
Copy link
Contributor

The title says is already :)

Copy link
Member

@maximbaz maximbaz left a comment

Choose a reason for hiding this comment

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

Thanks, that's a nice idea!

@@ -36,7 +36,7 @@ function view() {
} else if (logins.length > 0) {
results = logins.map(function(login) {
let selector = "button.login";
let options = { onclick: getLoginData.bind(login) };
let options = { onclick: getLoginData.bind(login), title: "Fill form" + (localStorage.getItem("autoSubmit") ? " and submit" : "") };
Copy link
Member

Choose a reason for hiding this comment

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

could you change the code to access localStorage only once and store result in the variable, before the logins.map()?

Also, this doesn't really work if you change autosubmit to "yes", save, and then change back to "no".
It should be instead localStorage.getItem("autoSubmit") == "true"

@maximbaz maximbaz merged commit eb7e705 into browserpass:master Mar 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants