feat: Add WebSocket and background update functionality to ASNs, Domains, and IPRanges managers; integrate WsUpdateModal for real-time updates
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 5m33s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 5m33s
This commit is contained in:
@@ -3,7 +3,9 @@ import {
|
||||
IconRefresh,
|
||||
IconUpload,
|
||||
IconDownload,
|
||||
IconDeviceFloppy
|
||||
IconDeviceFloppy,
|
||||
IconPlayerPlay,
|
||||
IconBolt
|
||||
} from '@tabler/icons-react';
|
||||
|
||||
function PageHeaderActions({
|
||||
@@ -20,9 +22,21 @@ function PageHeaderActions({
|
||||
onSave,
|
||||
disableSave = false,
|
||||
onHistory,
|
||||
onOnlineUpdate,
|
||||
onBackgroundUpdate,
|
||||
}) {
|
||||
return (
|
||||
<div className="btn-list">
|
||||
{onOnlineUpdate && (
|
||||
<button className="btn btn-outline-warning" onClick={onOnlineUpdate} title="Online-обновление BGP (WebSocket)">
|
||||
<IconBolt className="me-1" /> Online-обновление
|
||||
</button>
|
||||
)}
|
||||
{onBackgroundUpdate && (
|
||||
<button className="btn btn-outline-success" onClick={onBackgroundUpdate} title="Фоновое обновление BGP (POST)">
|
||||
<IconPlayerPlay className="me-1" /> Фоновое обновление
|
||||
</button>
|
||||
)}
|
||||
{onPreview && (
|
||||
<button className="btn btn-outline-secondary" onClick={onPreview} disabled={disablePreview} title="Предпросмотр изменений">
|
||||
<IconEye className="me-1" /> Предпросмотр
|
||||
|
||||
Reference in New Issue
Block a user