From c653bcae38fa6c93a50d1a553e4f3780ff40bab8 Mon Sep 17 00:00:00 2001 From: "Maurice L." Date: Sat, 1 Feb 2025 23:20:56 +0100 Subject: [PATCH] removed language button --- src/components/app/AppSidebar.vue | 282 +++++------------------------- 1 file changed, 40 insertions(+), 242 deletions(-) diff --git a/src/components/app/AppSidebar.vue b/src/components/app/AppSidebar.vue index 81a552d..bdc256c 100644 --- a/src/components/app/AppSidebar.vue +++ b/src/components/app/AppSidebar.vue @@ -3,52 +3,49 @@ export default { - components: { + components: { - }, - mounted() { - //Pages - document.getElementById('dropdown-pages-button')?.addEventListener('click', () => { - const button = document.getElementById('dropdown-pages-button'); - const dropdown = document.getElementById("dropdown-pages"); + }, + mounted() { + //Pages + document.getElementById('dropdown-pages-button')?.addEventListener('click', () => { + const button = document.getElementById('dropdown-pages-button'); + const dropdown = document.getElementById("dropdown-pages"); + if (dropdown?.classList.contains('hidden')) { + dropdown?.classList.remove('hidden'); + button?.setAttribute('aria-expanded', 'true'); + } else { + dropdown?.classList.add('hidden'); + button?.setAttribute('aria-expanded', 'false'); + } + }); - if (dropdown?.classList.contains('hidden')) { - dropdown?.classList.remove('hidden'); - button?.setAttribute('aria-expanded', 'true'); - } else { - dropdown?.classList.add('hidden'); - button?.setAttribute('aria-expanded', 'false'); - } - }); + //Sales + document.getElementById('dropdown-sales-button')?.addEventListener('click', () => { + const button = document.getElementById('dropdown-sales-button'); + const dropdown = document.getElementById("dropdown-sales"); + if (dropdown?.classList.contains('hidden')) { + dropdown?.classList.remove('hidden'); + button?.setAttribute('aria-expanded', 'true'); + } else { + dropdown?.classList.add('hidden'); + button?.setAttribute('aria-expanded', 'false'); + } + }); - //Sales - document.getElementById('dropdown-sales-button')?.addEventListener('click', () => { - const button = document.getElementById('dropdown-sales-button'); - const dropdown = document.getElementById("dropdown-sales"); - - if (dropdown?.classList.contains('hidden')) { - dropdown?.classList.remove('hidden'); - button?.setAttribute('aria-expanded', 'true'); - } else { - dropdown?.classList.add('hidden'); - button?.setAttribute('aria-expanded', 'false'); - } - }); - - //Authentication - document.getElementById('dropdown-authentication-button')?.addEventListener('click', () => { - const button = document.getElementById('dropdown-authentication-button'); - const dropdown = document.getElementById("dropdown-authentication"); - - if (dropdown?.classList.contains('hidden')) { - dropdown?.classList.remove('hidden'); - button?.setAttribute('aria-expanded', 'true'); - } else { - dropdown?.classList.add('hidden'); - button?.setAttribute('aria-expanded', 'false'); - } - }); - } + //Authentication + document.getElementById('dropdown-authentication-button')?.addEventListener('click', () => { + const button = document.getElementById('dropdown-authentication-button'); + const dropdown = document.getElementById("dropdown-authentication"); + if (dropdown?.classList.contains('hidden')) { + dropdown?.classList.remove('hidden'); + button?.setAttribute('aria-expanded', 'true'); + } else { + dropdown?.classList.add('hidden'); + button?.setAttribute('aria-expanded', 'false'); + } + }); + } } @@ -437,205 +434,6 @@ export default { Settings page
- - - \ No newline at end of file