diff --git a/apps/admin-x-settings/src/components/settings/site/ThemeModal.tsx b/apps/admin-x-settings/src/components/settings/site/ThemeModal.tsx index 21aad85d7a..59bbe85229 100644 --- a/apps/admin-x-settings/src/components/settings/site/ThemeModal.tsx +++ b/apps/admin-x-settings/src/components/settings/site/ThemeModal.tsx @@ -92,13 +92,13 @@ const ThemeToolbar: React.FC = ({ const existingThemeNames = themes.map(t => t.name); if (isDefaultOrLegacyTheme({name: themeFileName})) { NiceModal.show(ConfirmationModal, { - title: 'Cannot overwrite theme', + title: 'Upload failed', cancelLabel: 'Cancel', okLabel: '', prompt: ( <> -

Sorry, {themeFileName} is a default theme and cannot be overwritten.

-

Please rename your zip file and try again.

+

The default {themeFileName} theme cannot be overwritten.

+

Rename your zip file and try again.

), onOk: async (confirmModal) => { diff --git a/apps/admin-x-settings/test/acceptance/site/theme.test.ts b/apps/admin-x-settings/test/acceptance/site/theme.test.ts index 6dbcbe44d1..bcaf610fa9 100644 --- a/apps/admin-x-settings/test/acceptance/site/theme.test.ts +++ b/apps/admin-x-settings/test/acceptance/site/theme.test.ts @@ -243,6 +243,6 @@ test.describe('Theme settings', async () => { const fileChooser = await fileChooserPromise; await fileChooser.setFiles(`${__dirname}/../../utils/responses/source.zip`); - await expect(page.getByTestId('confirmation-modal')).toHaveText(/Cannot overwrite theme/); + await expect(page.getByTestId('confirmation-modal')).toHaveText(/Upload failed/); }); });