mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-12 16:35:49 +01:00
Merge branch 'widget-full-translation-support' of https://github.com/Tagaishi/homarr into widget-full-translation-support
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user