Skip to content

Commit

Permalink
Minor modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
varjolintu committed Mar 16, 2019
1 parent 8c9f6cc commit a9d5d33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions keepassxc-browser/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@
"message": "Please choose the group you want to add the new credentials.",
"description": "A popup message shown choosing what group user wants to use for new credentials."
},
"popupRememberErrorDefaultGroupNotFound": {
"message": "Error: Specified default group not found. Creating all necessary groups.",
"description": "Error message shown when default group set cannot be found."
"popupRememberInfoDefaultGroupNotFound": {
"message": "Info: Default group created in connected database.",
"description": "Info message shown when default group set cannot be found."
},
"popupRememberErrorCreatingNewGroup": {
"message": "New group(s) cannot be created.",
"message": "Error: New group(s) cannot be created.",
"description": "Error message shown when new groups cannot be created."
},
"popupRememberErrorPasswordNotChanged": {
Expand Down
3 changes: 1 addition & 2 deletions keepassxc-browser/popups/popup_remember.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,13 @@ function _initialize(tab) {
// Another group name has been specified
const [ gname, guuid ] = getDefaultGroup(result.groups[0].children, result.defaultGroup);
if (gname === '' && guuid === '') {
showNotification(tr('popupRememberErrorDefaultGroupNotFound'));

// Create a new group
browser.runtime.sendMessage({
action: 'create_new_group',
args: [ result.defaultGroup ]
}).then((newGroup) => {
if (newGroup.name && newGroup.uuid) {
showNotification(tr('popupRememberInfoDefaultGroupNotFound'));
browser.runtime.sendMessage({
action: 'add_credentials',
args: [ _tab.credentials.username, _tab.credentials.password, _tab.credentials.url, newGroup.name, newGroup.uuid ]
Expand Down

0 comments on commit a9d5d33

Please sign in to comment.