Skip to content

Commit 5662412

Browse files
authored
Merge pull request #11 from yehiarasheed/set-default-section
[fix] Changed the Default Section to be the Service Plan Section.
2 parents 8f5c8ff + 364e537 commit 5662412

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

WebApplication2/Customer/Pages/CustomerComponent.aspx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@
412412
<a href="#" onclick="showSection('unresolvedTickets')">Unresolved Tickets</a>
413413
<a href="#" onclick="showSection('remainingExtraAmount')">Remaining & Extra Amounts</a>
414414
<a href="mailto:yehiarasheed@gmail.com"> Support</a>
415-
<a href="login.aspx" >Log Out</a>
415+
<a href="login.aspx" onclick="logout()">Log Out</a>
416416

417417
</div>
418418
<!-- Dark Mode Toggle Button -->
@@ -669,6 +669,16 @@
669669
const activeSection = localStorage.getItem('activeSection') || 'servicePlans';
670670
showSection(activeSection);
671671
});
672+
673+
function logout() {
674+
// Clear the active section
675+
localStorage.removeItem('activeSection');
676+
677+
// Proceed with your existing logout logic
678+
// Example: Redirect to login page
679+
window.location.href = 'login.aspx';
680+
}
681+
672682
</script>
673683
</body>
674684
</html>

0 commit comments

Comments
 (0)