Merge branch 'widget-full-translation-support' of https://github.com/Tagaishi/homarr into widget-full-translation-support

This commit is contained in:
Tagaishi
2023-08-14 19:16:15 +02:00
2 changed files with 3 additions and 20 deletions

View File

@@ -31,8 +31,7 @@
"title": "Error", "title": "Error",
"message": "An error has occurred" "message": "An error has occurred"
}, },
"paused": "Paused", "paused": "Paused"
"notImplemented": "NOT IMPLEMENTED"
}, },
"history": { "history": {
"header": { "header": {
@@ -47,4 +46,4 @@
}, },
"paused": "Paused" "paused": "Paused"
} }
} }

View File

@@ -21,8 +21,8 @@ import duration from 'dayjs/plugin/duration';
import { useTranslation } from 'next-i18next'; import { useTranslation } from 'next-i18next';
import { FunctionComponent, useState } from 'react'; import { FunctionComponent, useState } from 'react';
import { useGetUsenetDownloads } from '../dashDot/api';
import { humanFileSize } from '../../tools/humanFileSize'; import { humanFileSize } from '../../tools/humanFileSize';
import { useGetUsenetDownloads } from '../dashDot/api';
dayjs.extend(duration); dayjs.extend(duration);
@@ -91,7 +91,6 @@ export const UsenetQueueList: FunctionComponent<UsenetQueueListProps> = ({ appId
<Table highlightOnHover style={{ tableLayout: 'fixed' }} ref={ref}> <Table highlightOnHover style={{ tableLayout: 'fixed' }} ref={ref}>
<thead> <thead>
<tr> <tr>
<th style={{ width: 32 }} />
<th style={{ width: '75%' }}>{t('queue.header.name')}</th> <th style={{ width: '75%' }}>{t('queue.header.name')}</th>
{sizeBreakpoint < width ? ( {sizeBreakpoint < width ? (
<th style={{ width: 100 }}>{t('queue.header.size')}</th> <th style={{ width: 100 }}>{t('queue.header.size')}</th>
@@ -107,21 +106,6 @@ export const UsenetQueueList: FunctionComponent<UsenetQueueListProps> = ({ appId
<tbody> <tbody>
{data.items.map((nzb) => ( {data.items.map((nzb) => (
<tr key={nzb.id}> <tr key={nzb.id}>
<td>
{nzb.state === 'paused' ? (
<Tooltip label={t('queue.notImplemented')}>
<ActionIcon color="gray" variant="subtle" radius="xl" size="sm">
<IconPlayerPlay size="16" />
</ActionIcon>
</Tooltip>
) : (
<Tooltip label={t('queue.notImplemented')}>
<ActionIcon color="primary" variant="subtle" radius="xl" size="sm">
<IconPlayerPause size="16" />
</ActionIcon>
</Tooltip>
)}
</td>
<td> <td>
<Tooltip position="top" label={nzb.name}> <Tooltip position="top" label={nzb.name}>
<Text <Text