diff --git a/BACKEND/Modules/Admin/resources/views/mails/reset_password_success.blade.php b/BACKEND/Modules/Admin/resources/views/mails/reset_password_success.blade.php index 0902972..edb9fea 100755 --- a/BACKEND/Modules/Admin/resources/views/mails/reset_password_success.blade.php +++ b/BACKEND/Modules/Admin/resources/views/mails/reset_password_success.blade.php @@ -4,7 +4,7 @@ 'title' => 'Reset Password Successfully', 'name' => $name, 'body' => "We wanted to let you know that your password has been successfully reset. Your account is now secured with a new password.
| - + |
v1.0.1
@@ -361,7 +359,6 @@ const Navbar = ({
loading === false &&
dataChange.password !== '' &&
passwordRegex.test(dataChange.new_password) &&
- passwordRegex.test(dataChange.password) &&
dataChange.new_password === dataChange.confirm_password &&
dataChange.new_password !== ''
? false
diff --git a/FRONTEND/src/components/Navbar/NavbarSimpleColored.module.css b/FRONTEND/src/components/Navbar/NavbarSimpleColored.module.css
index 4178f29..4fc6c96 100755
--- a/FRONTEND/src/components/Navbar/NavbarSimpleColored.module.css
+++ b/FRONTEND/src/components/Navbar/NavbarSimpleColored.module.css
@@ -2,7 +2,7 @@
height: rem(100%);
display: flex;
flex-direction: column;
- background-color: #2d353c;
+ background-color: #1c4a73;
width: 100%;
}
@@ -20,7 +20,7 @@
/* z-index: 1000; */
background-image: linear-gradient(rgba(27, 26, 26, 0.5),
rgba(29, 27, 27, 0.5)),
- url('https://upload.wikimedia.org/wikipedia/commons/5/5c/Dark_mountain_panorama.jpg');
+ url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT-bB7j40qe-mSJ-howmBO7T6tAghPrtfLvDw&s');
height: rem(100px);
background-repeat: no-repeat;
background-size: cover;
@@ -66,7 +66,7 @@
&,
&:hover {
box-shadow: var(--mantine-shadow-sm);
- background-color: #576470b7;
+ background-color: #6089afb7;
color: var(--mantine-color-white);
.linkIcon {
diff --git a/FRONTEND/src/pages/Timekeeping/Timekeeping.tsx b/FRONTEND/src/pages/Timekeeping/Timekeeping.tsx
index c1a09f5..e9829fe 100644
--- a/FRONTEND/src/pages/Timekeeping/Timekeeping.tsx
+++ b/FRONTEND/src/pages/Timekeeping/Timekeeping.tsx
@@ -4,6 +4,7 @@ import { Box, Image, Select, Table, Text, Tooltip } from '@mantine/core'
import { IconCheck, IconX } from '@tabler/icons-react'
import { useEffect, useState } from 'react'
import classes from './Timekeeping.module.css'
+import { notifications } from '@mantine/notifications'
interface User {
id: number
@@ -39,7 +40,6 @@ interface UserData {
}
const Timekeeping = () => {
- let permission = ['staff']
const [daysInMonth, setDaysInMonth] = useState(
Array.from({ length: 31 }, (_, index) => index + 1),
)
@@ -58,15 +58,20 @@ const Timekeeping = () => {
if (res.status) {
setData(
res.data.filter((u: UserData) =>
- permission.includes(u.user.permission),
+ !u.user.email.includes('admin'),
),
)
setDaysInMonth(
Array.from({ length: getDaysInMonth() }, (_, index) => index + 1),
)
}
- } catch (error) {
+ } catch (error:any) {
console.log(error)
+ notifications.show({
+ title: 'Error',
+ message: error.message??error,
+ color: 'red',
+ })
}
}
@@ -175,7 +180,7 @@ const Timekeeping = () => {