mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-02-12 06:54:28 +01:00
Also hide contacts header when there are no contacts.
This commit is contained in:
parent
652aededfc
commit
20694185ed
@ -408,9 +408,11 @@ OC.Contacts = OC.Contacts || {
|
|||||||
console.log('Error loading contacts!');
|
console.log('Error loading contacts!');
|
||||||
} else {
|
} else {
|
||||||
if(response.numcontacts === 0) {
|
if(response.numcontacts === 0) {
|
||||||
|
self.$contactListHeader.hide();
|
||||||
self.$contactList.hide();
|
self.$contactList.hide();
|
||||||
self.$firstRun.show();
|
self.$firstRun.show();
|
||||||
} else {
|
} else {
|
||||||
|
self.$contactListHeader.show();
|
||||||
self.$contactList.show();
|
self.$contactList.show();
|
||||||
self.$firstRun.hide();
|
self.$firstRun.hide();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user