Skip to content

Commit

Permalink
Click on user name fills in the password
Browse files Browse the repository at this point in the history
  • Loading branch information
adrium committed Jul 21, 2018
1 parent c83054b commit d0dab49
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 20 deletions.
6 changes: 2 additions & 4 deletions data/panel/panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,10 @@ <h1 data-l10n-id="migration_title"></h1>
<div id="password-template" hidden>
<div class="password-container">
<a href="#" class="password-menu-link iconic-link" data-l10n-id="password_menu"></a>
<a href="#" class="to-document-link iconic-link" data-l10n-id="to_document"></a>
<a href="#" class="to-clipboard-link iconic-link" data-l10n-id="to_clipboard"></a>
<span class="user-name-container">
<div class="user-name-container to-document-link">
<span class="user-name"></span>
<span class="password-revision"></span>
</span>
</div>
</div>
</div>

Expand Down
16 changes: 3 additions & 13 deletions data/panel/panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,6 @@ a
display: flex;
flex-direction: row;
align-items: center;

&:hover
{
background-color: $hover-background;
}
}

.user-name-container
Expand Down Expand Up @@ -280,14 +275,10 @@ a
background-color: 0.7 * $background-color + 0.3 * $text-color;
}

.to-document-link
.to-document-link:hover
{
background-image: url(../images/ios-color-wand.svg);
}

.to-clipboard-link
{
background-image: url(../images/archive.svg);
background-color: $hover-background;
cursor: pointer;
}

.pwshow-link
Expand Down Expand Up @@ -376,7 +367,6 @@ a
}
}

:root.webclient .to-document-link,
:root.webclient #menu-to-document
{
display: none;
Expand Down
4 changes: 2 additions & 2 deletions data/panel/passwordList.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ function showPasswords()
let tooltip;
if (password.type == "generated2" || password.type == "generated")
{
tooltip = i18n.getMessage("password_type_" + password.type);
tooltip = i18n.getMessage("to_document_tooltip");
tooltip += "\n" + i18n.getMessage("password_type_" + password.type);
if (password.type == "generated")
tooltip += "\n" + i18n.getMessage("password_type_generated_replace");

Expand All @@ -224,7 +225,6 @@ function showPasswords()
let entry = template.cloneNode(true);
setCommandHandler(entry.querySelector(".password-menu-link"), toggleMenu.bind(null, password, entry));
setCommandHandler(entry.querySelector(".to-document-link"), fillInPassword.bind(null, password));
setCommandHandler(entry.querySelector(".to-clipboard-link"), copyToClipboard.bind(null, password));

if (password.type == "generated")
{
Expand Down
1 change: 1 addition & 0 deletions locale/en-US.properties
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ password_ready_message = Your password is ready, click again anywhere to copy it
passwords_label = Passwords:
password_menu = All actions
to_document = Fill in
to_document_tooltip = Click to fill in password
to_clipboard = Copy to clipboard
pwshow = Show password
add_notes = Add notes
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"description": "__MSG_description__",
"author": "Adrium",
"homepage_url": "https://github.com/adrium/easypass.git",
"version": "0.10",
"version": "0.11",
"permissions": [
"tabs",
"http://*/*",
Expand Down

0 comments on commit d0dab49

Please sign in to comment.