diff --git a/src/Explorer/Panes/DeleteCollectionConfirmationPane/DeleteCollectionConfirmationPane.tsx b/src/Explorer/Panes/DeleteCollectionConfirmationPane/DeleteCollectionConfirmationPane.tsx index bdd16764b..be5ce21c5 100644 --- a/src/Explorer/Panes/DeleteCollectionConfirmationPane/DeleteCollectionConfirmationPane.tsx +++ b/src/Explorer/Panes/DeleteCollectionConfirmationPane/DeleteCollectionConfirmationPane.tsx @@ -1,18 +1,18 @@ import { Text, TextField } from "@fluentui/react"; import { Areas } from "Common/Constants"; -import { deleteCollection } from "Common/dataAccess/deleteCollection"; import DeleteFeedback from "Common/DeleteFeedback"; import { getErrorMessage, getErrorStack } from "Common/ErrorHandlingUtils"; +import { deleteCollection } from "Common/dataAccess/deleteCollection"; import { Collection } from "Contracts/ViewModels"; -import { useSidePanel } from "hooks/useSidePanel"; -import { useTabs } from "hooks/useTabs"; -import React, { FunctionComponent, useState } from "react"; import { DefaultExperienceUtility } from "Shared/DefaultExperienceUtility"; import { Action, ActionModifiers } from "Shared/Telemetry/TelemetryConstants"; import * as TelemetryProcessor from "Shared/Telemetry/TelemetryProcessor"; import { userContext } from "UserContext"; import { getCollectionName } from "Utils/APITypeUtils"; import * as NotificationConsoleUtils from "Utils/NotificationConsoleUtils"; +import { useSidePanel } from "hooks/useSidePanel"; +import { useTabs } from "hooks/useTabs"; +import React, { FunctionComponent, useState } from "react"; import { useDatabases } from "../../useDatabases"; import { useSelectedNode } from "../../useSelectedNode"; import { RightPaneForm, RightPaneFormProps } from "../RightPaneForm/RightPaneForm"; @@ -126,6 +126,7 @@ export const DeleteCollectionConfirmationPane: FunctionComponent {shouldRecordFeedback() && ( diff --git a/src/Explorer/Panes/DeleteCollectionConfirmationPane/__snapshots__/DeleteCollectionConfirmationPane.test.tsx.snap b/src/Explorer/Panes/DeleteCollectionConfirmationPane/__snapshots__/DeleteCollectionConfirmationPane.test.tsx.snap index b31dc19d3..11e96e32d 100644 --- a/src/Explorer/Panes/DeleteCollectionConfirmationPane/__snapshots__/DeleteCollectionConfirmationPane.test.tsx.snap +++ b/src/Explorer/Panes/DeleteCollectionConfirmationPane/__snapshots__/DeleteCollectionConfirmationPane.test.tsx.snap @@ -44,6 +44,7 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect autoFocus={true} id="confirmCollectionId" onChange={[Function]} + required={true} styles={ Object { "fieldGroup": Object { @@ -59,6 +60,7 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect deferredValidationTime={200} id="confirmCollectionId" onChange={[Function]} + required={true} resizable={true} styles={[Function]} theme={ @@ -338,7 +340,7 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect value="" >
diff --git a/src/Explorer/Panes/DeleteDatabaseConfirmationPanel.tsx b/src/Explorer/Panes/DeleteDatabaseConfirmationPanel.tsx index d09d1b25e..6ce214e84 100644 --- a/src/Explorer/Panes/DeleteDatabaseConfirmationPanel.tsx +++ b/src/Explorer/Panes/DeleteDatabaseConfirmationPanel.tsx @@ -140,6 +140,7 @@ export const DeleteDatabaseConfirmationPanel: FunctionComponent
{isLastNonEmptyDatabase() && ( diff --git a/src/Explorer/Panes/__snapshots__/DeleteDatabaseConfirmationPanel.test.tsx.snap b/src/Explorer/Panes/__snapshots__/DeleteDatabaseConfirmationPanel.test.tsx.snap index ac2eef412..9d4fd78eb 100644 --- a/src/Explorer/Panes/__snapshots__/DeleteDatabaseConfirmationPanel.test.tsx.snap +++ b/src/Explorer/Panes/__snapshots__/DeleteDatabaseConfirmationPanel.test.tsx.snap @@ -371,6 +371,7 @@ exports[`Delete Database Confirmation Pane Should call delete database 1`] = ` autoFocus={true} id="confirmDatabaseId" onChange={[Function]} + required={true} styles={ Object { "fieldGroup": Object { @@ -385,6 +386,7 @@ exports[`Delete Database Confirmation Pane Should call delete database 1`] = ` deferredValidationTime={200} id="confirmDatabaseId" onChange={[Function]} + required={true} resizable={true} styles={[Function]} theme={ @@ -663,7 +665,7 @@ exports[`Delete Database Confirmation Pane Should call delete database 1`] = ` validateOnLoad={true} >