mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-10 17:53:36 +02:00
Update texts (#1226)
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
This commit is contained in:
parent
4fa7b548f1
commit
b2bb60bec5
@ -20,6 +20,7 @@ const StyledDeleteParagraph = styled('p')(({ theme }) => ({
|
|||||||
|
|
||||||
const StyledFormInput = styled(Input)(({ theme }) => ({
|
const StyledFormInput = styled(Input)(({ theme }) => ({
|
||||||
marginTop: theme.spacing(2),
|
marginTop: theme.spacing(2),
|
||||||
|
width: '100%',
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export const ArchivedFeatureDeleteConfirm = ({
|
export const ArchivedFeatureDeleteConfirm = ({
|
||||||
@ -41,7 +42,7 @@ export const ArchivedFeatureDeleteConfirm = ({
|
|||||||
await refetch();
|
await refetch();
|
||||||
setToastData({
|
setToastData({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
title: 'Feature deleted',
|
title: 'Feature toggle deleted',
|
||||||
text: `You have successfully deleted the ${deletedFeature.name} feature toggle.`,
|
text: `You have successfully deleted the ${deletedFeature.name} feature toggle.`,
|
||||||
});
|
});
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
@ -60,7 +61,7 @@ export const ArchivedFeatureDeleteConfirm = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialogue
|
<Dialogue
|
||||||
title="Are you sure you want to delete this feature toggle?"
|
title="Delete feature toggle?"
|
||||||
open={open}
|
open={open}
|
||||||
primaryButtonText="Delete feature toggle"
|
primaryButtonText="Delete feature toggle"
|
||||||
secondaryButtonText="Cancel"
|
secondaryButtonText="Cancel"
|
||||||
@ -70,15 +71,16 @@ export const ArchivedFeatureDeleteConfirm = ({
|
|||||||
formId={formId}
|
formId={formId}
|
||||||
>
|
>
|
||||||
<Alert severity="warning">
|
<Alert severity="warning">
|
||||||
Warning! To safely delete a feature toggle you might want to
|
<b>Warning!</b> Before you delete a feature toggle, make sure
|
||||||
delete the related code in your application first. This ensures
|
all in-code references to that feature toggle have been removed.
|
||||||
you avoid any errors in case you create a new feature toggle
|
Otherwise, a new feature toggle with the same name could
|
||||||
with the same name in the future.
|
activate the old code paths.
|
||||||
</Alert>
|
</Alert>
|
||||||
|
|
||||||
<StyledDeleteParagraph>
|
<StyledDeleteParagraph>
|
||||||
In order to delete this feature toggle, please enter the name of
|
In order to delete this feature toggle, please enter its name in
|
||||||
the toggle in the textfield below:{' '}
|
the text field below:
|
||||||
|
<br />
|
||||||
<strong>{deletedFeature?.name}</strong>
|
<strong>{deletedFeature?.name}</strong>
|
||||||
</StyledDeleteParagraph>
|
</StyledDeleteParagraph>
|
||||||
|
|
||||||
@ -89,6 +91,7 @@ export const ArchivedFeatureDeleteConfirm = ({
|
|||||||
setConfirmName(e.currentTarget.value);
|
setConfirmName(e.currentTarget.value);
|
||||||
}}
|
}}
|
||||||
value={confirmName}
|
value={confirmName}
|
||||||
|
placeholder="<feature toggle name>"
|
||||||
label="Feature toggle name"
|
label="Feature toggle name"
|
||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
Reference in New Issue
Block a user