From a9029acea288e2a420f7a5fbca2c54914195037c Mon Sep 17 00:00:00 2001 From: Denis Shatskiy Date: Wed, 13 Aug 2025 09:12:36 +0700 Subject: [PATCH] refactor: Remove unused preview actions from ASNs, Domains, and IPRanges managers; streamline PageHeaderActions component for improved clarity and usability --- frontend/src/ASNsNewManager.jsx | 5 +- frontend/src/DomainsNewManager.jsx | 5 +- frontend/src/IPRangesManager.jsx | 5 +- frontend/src/components/PageHeaderActions.jsx | 67 ++++++++++++------- 4 files changed, 46 insertions(+), 36 deletions(-) diff --git a/frontend/src/ASNsNewManager.jsx b/frontend/src/ASNsNewManager.jsx index 684aacc..dd44104 100644 --- a/frontend/src/ASNsNewManager.jsx +++ b/frontend/src/ASNsNewManager.jsx @@ -15,8 +15,7 @@ import { IconDeviceFloppy, IconHash, IconClock, - IconFileText, - IconEye + IconFileText } from '@tabler/icons-react'; import LockBanner from './components/LockBanner.jsx'; import TableSkeleton from './components/TableSkeleton.jsx'; @@ -399,8 +398,6 @@ function ASNsNewManager() {
- {onOnlineUpdate && ( - - )} - {onBackgroundUpdate && ( - + {(onBackgroundUpdate || onOnlineUpdate) && ( +
+ {/* Дефолтное действие — фоновое обновление */} + + {(onBackgroundUpdate && onOnlineUpdate) && ( + <> + +
+ + +
+ + )} +
)}
- {onPreview && ( - - )} {onRefresh && ( )} - {onImport && ( - - )} - {onExport && ( - + {(onImport || onExport) && ( +
+ +
+ {onImport && ( + + )} + {onExport && ( + + )} +
+
)} {onClear && (