mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-04 04:22:58 +00:00
Add files via upload
This commit is contained in:
+9
-4
@@ -172,13 +172,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function showContactsList() {
|
function showContactsList() {
|
||||||
document.getElementById('contactsList').classList.remove('hidden');
|
const contactsList = document.getElementById('contactsList');
|
||||||
document.getElementById('error').classList.add('hidden');
|
const errorElement = document.getElementById('error');
|
||||||
|
|
||||||
|
if (contactsList) contactsList.classList.remove('hidden');
|
||||||
|
if (errorElement) errorElement.classList.add('hidden');
|
||||||
|
|
||||||
// Show default tab (main contacts) if none active
|
// Show default tab (main contacts) if none active
|
||||||
|
const mainBtn = document.querySelector('.switcher-btn[data-type="main"]');
|
||||||
const activeBtn = document.querySelector('.switcher-btn.active');
|
const activeBtn = document.querySelector('.switcher-btn.active');
|
||||||
if (!activeBtn) {
|
|
||||||
document.querySelector('.switcher-btn[data-type="main"]').classList.add('active');
|
if (!activeBtn && mainBtn) {
|
||||||
|
mainBtn.classList.add('active');
|
||||||
}
|
}
|
||||||
|
|
||||||
filterContacts();
|
filterContacts();
|
||||||
|
|||||||
Reference in New Issue
Block a user