Skip to content

Commit f80e2de

Browse files
authored
Merge branch 'master' into tc/ref_prefer_dataset_over_get_attribute
2 parents 58ae651 + 3e30c04 commit f80e2de

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

src/apps/dashboard/components/widgets/ActivityLogWidget.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const ActivityLogWidget = () => {
3939
key={entry.Id}
4040
item={entry}
4141
displayShortOverview={true}
42+
to='/dashboard/activity?useractivity=true'
4243
/>
4344
))}
4445
</List>

src/apps/dashboard/components/widgets/AlertsLogWidget.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const AlertsLogWidget = () => {
3131
key={entry.Id}
3232
item={entry}
3333
displayShortOverview={false}
34+
to='/dashboard/activity?useractivity=false'
3435
/>
3536
))}
3637
</List>

src/apps/dashboard/features/activity/components/ActivityListItem.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,22 @@ import Notifications from '@mui/icons-material/Notifications';
44
import Avatar from '@mui/material/Avatar';
55
import ListItem from '@mui/material/ListItem';
66
import ListItemAvatar from '@mui/material/ListItemAvatar';
7-
import ListItemButton from '@mui/material/ListItemButton';
87
import ListItemText from '@mui/material/ListItemText';
98
import Typography from '@mui/material/Typography';
109
import formatRelative from 'date-fns/formatRelative';
1110
import { getLocale } from 'utils/dateFnsLocale';
1211
import Stack from '@mui/material/Stack';
1312
import getLogLevelColor from '../utils/getLogLevelColor';
1413
import { LogLevel } from '@jellyfin/sdk/lib/generated-client/models/log-level';
14+
import ListItemLink from 'components/ListItemLink';
1515

1616
type ActivityListItemProps = {
1717
item: ActivityLogEntry;
1818
displayShortOverview: boolean;
19+
to: string;
1920
};
2021

21-
const ActivityListItem = ({ item, displayShortOverview }: ActivityListItemProps) => {
22+
const ActivityListItem = ({ item, displayShortOverview, to }: ActivityListItemProps) => {
2223
const relativeDate = useMemo(() => {
2324
if (item.Date) {
2425
return formatRelative(Date.parse(item.Date), Date.now(), { locale: getLocale() });
@@ -29,7 +30,7 @@ const ActivityListItem = ({ item, displayShortOverview }: ActivityListItemProps)
2930

3031
return (
3132
<ListItem disablePadding>
32-
<ListItemButton>
33+
<ListItemLink to={to}>
3334
<ListItemAvatar>
3435
<Avatar sx={{ bgcolor: getLogLevelColor(item.Severity || LogLevel.Information) + '.main' }}>
3536
<Notifications sx={{ color: '#fff' }} />
@@ -66,7 +67,7 @@ const ActivityListItem = ({ item, displayShortOverview }: ActivityListItemProps)
6667
)}
6768
disableTypography
6869
/>
69-
</ListItemButton>
70+
</ListItemLink>
7071
</ListItem>
7172
);
7273
};

src/strings/vi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@
959959
"LearnHowYouCanContribute": "Tìm hiểu cách bạn có thể đóng góp.",
960960
"LatestFromLibrary": "{0} Đã Thêm Vào Gần Đây",
961961
"Large": "Lớn",
962-
"LanNetworksHelp": "Danh sách địa chỉ IP được phân tách bằng dấu phẩy hoặc mục IP / Mặt nạ mạng cho các mạng sẽ được xem xét trên mạng cục bộ khi thực thi các hạn chế về băng thông. Nếu được đặt, tất cả các địa chỉ IP khác sẽ được coi là thuộc mạng bên ngoài sẽ phải tuân theo các giới hạn băng thông bên ngoài. Nếu để trống, chỉ mạng con của máy chủ được coi là nằm trên mạng cục bộ.",
962+
"LanNetworksHelp": "Danh sách các địa chỉ IP hoặc các mục IP/Netmask phân tách cho các mạng sẽ được xem xét trên mạng cục bộ khi thực thi băng thông và hạn chế truy cập từ xa. Nếu để trống, tất cả các địa chỉ RFC1918 được coi là cục bộ.",
963963
"LabelffmpegPathHelp": "Đường dẫn đến tệp ứng dụng FFmpeg hoặc thư mục chứa FFmpeg.",
964964
"LabelffmpegPath": "Đường dẫn FFmpeg",
965965
"LabelZipCode": "Mã Bưu Chính",

0 commit comments

Comments
 (0)