Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #27346 from jmcanterafonseca/fix_msg_no_contacts
Browse files Browse the repository at this point in the history
Bug 1086260 - [Contacts] Wrong message opening contact list (pick activi...
  • Loading branch information
jmcanterafonseca committed Jan 15, 2015
2 parents fa8a10e + 4bc31d4 commit 78c37d1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions apps/communications/contacts/js/views/list.js
Expand Up @@ -870,7 +870,7 @@ contacts.List = (function() {
return;
}

forceICEGroupToBeHidden = !(!!show);
forceICEGroupToBeHidden = !(!!show);
forceICEGroupToBeHidden ? hideICEGroup() : showICEGroup();
}

Expand Down Expand Up @@ -1176,7 +1176,7 @@ contacts.List = (function() {
};

var showNoContactsAlert = function showNoContactsAlert() {
var msg = 'noContactsActivity';
var msg = 'noContactsActivity2';
var noObject = {
title: 'ok',
isDanger: false,
Expand Down Expand Up @@ -1220,7 +1220,7 @@ contacts.List = (function() {
successCb();
return;
}

var options = {
filterBy: ['id'],
filterOp: 'equals',
Expand Down
Expand Up @@ -23,9 +23,9 @@ no_contact_email = This contact does not have an email address
no_contact_data = This contact does not have a phone number and email address
removePhotoConfirm = Remove contact picture?
loadingContacts = Loading contacts…
# LOCALIZATION NOTE(noContactsActivity): Shown when using the context menu to add
# a number from your call list to a contact, and your contacts list is empty.
noContactsActivity = Cannot add to contact as your contact list is empty
# LOCALIZATION NOTE(noContactsActivity2): Shown when trying to pick a contact
# there are no contacts in your Contacts list
noContactsActivity2 = No contacts in your Contacts list

# Contact fields
noName = No name
Expand Down
Expand Up @@ -40,9 +40,9 @@ marionette('Contacts > Activities', function() {

setup(function() {
var selectorsArray = [
selectors.formGivenName,
selectors.formFamilyName,
selectors.formOrg,
selectors.formGivenName,
selectors.formFamilyName,
selectors.formOrg,
selectors.formTel,
selectors.formEmailFirst
];
Expand Down Expand Up @@ -151,7 +151,7 @@ marionette('Contacts > Activities', function() {
var confirmMsg = client.findElement(selectors.confirmBody);
var expectedResult = subject.l10n(
'/locales-obj/en-US.json',
'noContactsActivity');
'noContactsActivity2');
assert.equal(confirmMsg.text(), expectedResult);
});

Expand Down

0 comments on commit 78c37d1

Please sign in to comment.