1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

Also hide contacts header when there are no contacts.

This commit is contained in:
Thomas Tanghus 2013-08-03 14:35:00 +02:00
parent 652aededfc
commit 20694185ed

View File

@ -408,9 +408,11 @@ OC.Contacts = OC.Contacts || {
console.log('Error loading contacts!');
} else {
if(response.numcontacts === 0) {
self.$contactListHeader.hide();
self.$contactList.hide();
self.$firstRun.show();
} else {
self.$contactListHeader.show();
self.$contactList.show();
self.$firstRun.hide();
}