Spaces:
Running
Running
I can not select the time tracking
Browse files- index.html +2 -3
- time-tracking.html +1 -1
- vacation.html +1 -1
index.html
CHANGED
|
@@ -368,13 +368,12 @@
|
|
| 368 |
if (user) {
|
| 369 |
// Hide auth page
|
| 370 |
document.getElementById('auth-page').classList.add('hidden');
|
| 371 |
-
|
| 372 |
// Show appropriate dashboard
|
| 373 |
if (user.role === 'admin') {
|
| 374 |
window.location.href = "admin-dashboard.html";
|
| 375 |
} else {
|
| 376 |
-
// Redirect to
|
| 377 |
-
window.location.href = "
|
| 378 |
}
|
| 379 |
} else {
|
| 380 |
alert('Invalid email or password');
|
|
|
|
| 368 |
if (user) {
|
| 369 |
// Hide auth page
|
| 370 |
document.getElementById('auth-page').classList.add('hidden');
|
|
|
|
| 371 |
// Show appropriate dashboard
|
| 372 |
if (user.role === 'admin') {
|
| 373 |
window.location.href = "admin-dashboard.html";
|
| 374 |
} else {
|
| 375 |
+
// Redirect to dashboard page by default
|
| 376 |
+
window.location.href = "index.html";
|
| 377 |
}
|
| 378 |
} else {
|
| 379 |
alert('Invalid email or password');
|
time-tracking.html
CHANGED
|
@@ -47,7 +47,7 @@
|
|
| 47 |
<a href="time-tracking.html" class="sidebar-link active flex items-center px-4 py-3 text-sm font-medium text-dark rounded-lg">
|
| 48 |
<i data-feather="clock" class="mr-3 text-primary"></i> Time Tracking
|
| 49 |
</a>
|
| 50 |
-
|
| 51 |
<i data-feather="calendar" class="mr-3"></i> Vacation
|
| 52 |
</a>
|
| 53 |
<a href="reports.html" class="sidebar-link flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:text-dark rounded-lg">
|
|
|
|
| 47 |
<a href="time-tracking.html" class="sidebar-link active flex items-center px-4 py-3 text-sm font-medium text-dark rounded-lg">
|
| 48 |
<i data-feather="clock" class="mr-3 text-primary"></i> Time Tracking
|
| 49 |
</a>
|
| 50 |
+
<a href="vacation.html" class="sidebar-link flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:text-dark rounded-lg">
|
| 51 |
<i data-feather="calendar" class="mr-3"></i> Vacation
|
| 52 |
</a>
|
| 53 |
<a href="reports.html" class="sidebar-link flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:text-dark rounded-lg">
|
vacation.html
CHANGED
|
@@ -57,7 +57,7 @@
|
|
| 57 |
<a href="time-tracking.html" class="sidebar-link flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:text-dark rounded-lg">
|
| 58 |
<i data-feather="clock" class="mr-3"></i> Time Tracking
|
| 59 |
</a>
|
| 60 |
-
|
| 61 |
<i data-feather="calendar" class="mr-3 text-primary"></i> Vacation
|
| 62 |
</a>
|
| 63 |
<a href="reports.html" class="sidebar-link flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:text-dark rounded-lg">
|
|
|
|
| 57 |
<a href="time-tracking.html" class="sidebar-link flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:text-dark rounded-lg">
|
| 58 |
<i data-feather="clock" class="mr-3"></i> Time Tracking
|
| 59 |
</a>
|
| 60 |
+
<a href="vacation.html" class="sidebar-link active flex items-center px-4 py-3 text-sm font-medium text-dark rounded-lg">
|
| 61 |
<i data-feather="calendar" class="mr-3 text-primary"></i> Vacation
|
| 62 |
</a>
|
| 63 |
<a href="reports.html" class="sidebar-link flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:text-dark rounded-lg">
|