mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix(site): clarify default model delete copy
This commit is contained in:
+3
-1
@@ -153,7 +153,9 @@ export const DeleteDialogWithAssociatedModels: Story = {
|
||||
).toBeInTheDocument();
|
||||
await expect(screen.getByText("2 models")).toBeInTheDocument();
|
||||
await expect(
|
||||
screen.getByText("No other model exists to become the default."),
|
||||
screen.getByText(
|
||||
"Your default model will be disabled. No other model is available to become the default.",
|
||||
),
|
||||
).toBeInTheDocument();
|
||||
},
|
||||
};
|
||||
|
||||
+2
-2
@@ -258,8 +258,8 @@ const UpdateProviderPageView: React.FC = () => {
|
||||
{willReassignDefault && (
|
||||
<li>
|
||||
{hasDefaultReplacement
|
||||
? "The default model will be reassigned."
|
||||
: "No other model exists to become the default."}
|
||||
? "Your default model will be disabled. Another model will be chosen automatically."
|
||||
: "Your default model will be disabled. No other model is available to become the default."}
|
||||
</li>
|
||||
)}
|
||||
</ul>
|
||||
|
||||
+3
-1
@@ -2339,7 +2339,9 @@ export const ProviderDeleteConfirmation: Story = {
|
||||
).toBeInTheDocument();
|
||||
expect(body.getByText(/2 models/i)).toBeInTheDocument();
|
||||
expect(
|
||||
body.getByText("No other model exists to become the default."),
|
||||
body.getByText(
|
||||
"Your default model will be disabled. No other model is available to become the default.",
|
||||
),
|
||||
).toBeInTheDocument();
|
||||
await expect(body.getByRole("dialog")).toBeInTheDocument();
|
||||
await expect(
|
||||
|
||||
@@ -147,8 +147,8 @@ export const ProviderForm: FC<ProviderFormProps> = ({
|
||||
{willReassignDefault && (
|
||||
<li>
|
||||
{hasDefaultReplacement
|
||||
? "The default model will be reassigned."
|
||||
: "No other model exists to become the default."}
|
||||
? "Your default model will be disabled. Another model will be chosen automatically."
|
||||
: "Your default model will be disabled. No other model is available to become the default."}
|
||||
</li>
|
||||
)}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user