mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
refactor: title to tooltip
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import {Card, Divider, Space, Table, Tag, Tooltip, Typography} from "antd";
|
import {Card, Divider, Space, Table, Tag, Tooltip} from "antd";
|
||||||
import {DisconnectOutlined, LinkOutlined} from "@ant-design/icons";
|
import {DisconnectOutlined, LinkOutlined} from "@ant-design/icons";
|
||||||
import {t} from "ttag";
|
import {t} from "ttag";
|
||||||
import {ViewDiagramWatchlistButton} from "./diagram/ViewDiagramWatchlistButton";
|
import {ViewDiagramWatchlistButton} from "./diagram/ViewDiagramWatchlistButton";
|
||||||
@@ -41,13 +41,16 @@ export function WatchlistCard({watchlist, onUpdateWatchlist, connectors, onDelet
|
|||||||
title={<>
|
title={<>
|
||||||
{
|
{
|
||||||
watchlist.connector ?
|
watchlist.connector ?
|
||||||
<Tag icon={<LinkOutlined/>} color="lime-inverse" title={watchlist.connector.id}/> :
|
<Tooltip title={watchlist.connector.id}>
|
||||||
<Tag icon={<DisconnectOutlined/>} color="default"
|
<Tag icon={<LinkOutlined/>} color="lime-inverse"/>
|
||||||
title={t`This Watchlist is not linked to a Connector.`}/>
|
</Tooltip> :
|
||||||
|
<Tooltip title={t`This Watchlist is not linked to a Connector.`}>
|
||||||
|
<Tag icon={<DisconnectOutlined/>} color="default"/>
|
||||||
|
</Tooltip>
|
||||||
}
|
}
|
||||||
<Typography.Text title={new Date(watchlist.createdAt).toLocaleString()}>
|
<Tooltip title={new Date(watchlist.createdAt).toLocaleString()}>
|
||||||
{t`Watchlist` + (watchlist.name ? ` (${watchlist.name})` : '')}
|
{t`Watchlist` + (watchlist.name ? ` (${watchlist.name})` : '')}
|
||||||
</Typography.Text>
|
</Tooltip>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
size='small'
|
size='small'
|
||||||
|
|||||||
@@ -697,11 +697,11 @@ msgstr ""
|
|||||||
msgid "Are you sure to delete this Watchlist?"
|
msgid "Are you sure to delete this Watchlist?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/watchlist/WatchlistCard.tsx:46
|
#: assets/components/tracking/watchlist/WatchlistCard.tsx:47
|
||||||
msgid "This Watchlist is not linked to a Connector."
|
msgid "This Watchlist is not linked to a Connector."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/components/tracking/watchlist/WatchlistCard.tsx:49
|
#: assets/components/tracking/watchlist/WatchlistCard.tsx:52
|
||||||
msgid "Watchlist"
|
msgid "Watchlist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user