feat: Add ConfirmDialog for clearing community fields in ASNs, Domains, and IPRanges managers with appropriate state management and UI integration
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 15m31s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 15m31s
This commit is contained in:
@@ -4,7 +4,8 @@ import {
|
||||
IconDownload,
|
||||
IconDeviceFloppy,
|
||||
IconPlayerPlay,
|
||||
IconBolt
|
||||
IconBolt,
|
||||
IconEraser
|
||||
} from '@tabler/icons-react';
|
||||
import PortalDropdown from './PortalDropdown.jsx';
|
||||
|
||||
@@ -19,6 +20,8 @@ function PageHeaderActions({
|
||||
disableExport = false,
|
||||
onClear,
|
||||
disableClear = false,
|
||||
onClearCommunities,
|
||||
disableClearCommunities = false,
|
||||
onSave,
|
||||
disableSave = false,
|
||||
onHistory,
|
||||
@@ -90,6 +93,11 @@ function PageHeaderActions({
|
||||
Очистить
|
||||
</button>
|
||||
)}
|
||||
{onClearCommunities && (
|
||||
<button className="btn btn-outline-secondary" type="button" onClick={onClearCommunities} disabled={disableClearCommunities} title="Сбросить community у всех записей">
|
||||
<IconEraser className="me-1" /> Очистить community
|
||||
</button>
|
||||
)}
|
||||
{onSave && (
|
||||
<button className="btn btn-primary" type="button" onClick={onSave} disabled={disableSave} title="Сохранить">
|
||||
{loading ? (
|
||||
|
||||
Reference in New Issue
Block a user