@@ -7,7 +7,7 @@ import {NavigationTree} from 'ydb-ui-components';
77
88import { getConnectToDBDialog } from '../../../../components/ConnectToDB/ConnectToDBDialog' ;
99import { useCreateDirectoryFeatureAvailable } from '../../../../store/reducers/capabilities/hooks' ;
10- import { selectUserInput } from '../../../../store/reducers/query/query' ;
10+ import { selectIsDirty , selectUserInput } from '../../../../store/reducers/query/query' ;
1111import { schemaApi } from '../../../../store/reducers/schema/schema' ;
1212import { tableSchemaDataApi } from '../../../../store/reducers/tableSchemaData' ;
1313import type { EPathType , TEvDescribeSchemeResult } from '../../../../types/api/schema' ;
@@ -42,6 +42,7 @@ export function SchemaTree(props: SchemaTreeProps) {
4242 const { rootPath, rootName, rootType, currentPath, onActivePathUpdate} = props ;
4343 const dispatch = useTypedDispatch ( ) ;
4444 const input = useTypedSelector ( selectUserInput ) ;
45+ const isDirty = useTypedSelector ( selectIsDirty ) ;
4546 const [
4647 getTableSchemaDataQuery ,
4748 { currentData : actionsSchemaData , isFetching : isActionsDataFetching } ,
@@ -132,7 +133,7 @@ export function SchemaTree(props: SchemaTreeProps) {
132133 showCreateDirectoryDialog : createDirectoryFeatureAvailable
133134 ? handleOpenCreateDirectoryDialog
134135 : undefined ,
135- getConfirmation : input ? getConfirmation : undefined ,
136+ getConfirmation : input && isDirty ? getConfirmation : undefined ,
136137 getConnectToDBDialog,
137138 schemaData : actionsSchemaData ,
138139 isSchemaDataLoading : isActionsDataFetching ,
0 commit comments