mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-22 01:16:07 +02:00
refactor: update text in ui consistent
This commit is contained in:
parent
67f73ff598
commit
aae8c4d9d9
@ -249,7 +249,7 @@ export const ApiTokenList = () => {
|
|||||||
}
|
}
|
||||||
data-test={CREATE_API_TOKEN_BUTTON}
|
data-test={CREATE_API_TOKEN_BUTTON}
|
||||||
>
|
>
|
||||||
Create API token
|
New API token
|
||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
@ -125,7 +125,7 @@ to resources within a project"
|
|||||||
getRoleKey={getRoleKey}
|
getRoleKey={getRoleKey}
|
||||||
>
|
>
|
||||||
<PermissionButton permission={ADMIN} type="submit">
|
<PermissionButton permission={ADMIN} type="submit">
|
||||||
Edit role
|
Save
|
||||||
</PermissionButton>
|
</PermissionButton>
|
||||||
</ProjectRoleForm>
|
</ProjectRoleForm>
|
||||||
</FormTemplate>
|
</FormTemplate>
|
||||||
|
@ -95,7 +95,7 @@ const EditUser = () => {
|
|||||||
mode={EDIT}
|
mode={EDIT}
|
||||||
>
|
>
|
||||||
<PermissionButton permission={ADMIN} type="submit">
|
<PermissionButton permission={ADMIN} type="submit">
|
||||||
Edit user
|
Save
|
||||||
</PermissionButton>
|
</PermissionButton>
|
||||||
</UserForm>
|
</UserForm>
|
||||||
</FormTemplate>
|
</FormTemplate>
|
||||||
|
@ -35,7 +35,7 @@ const UsersAdmin = () => {
|
|||||||
history.push('/admin/create-user')
|
history.push('/admin/create-user')
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
Add new user
|
New user
|
||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
elseShow={
|
elseShow={
|
||||||
|
@ -127,7 +127,7 @@ const ContextList = () => {
|
|||||||
color="primary"
|
color="primary"
|
||||||
variant="contained"
|
variant="contained"
|
||||||
>
|
>
|
||||||
Add new context field
|
New context field
|
||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
@ -107,7 +107,7 @@ const EditContext = () => {
|
|||||||
permission={UPDATE_CONTEXT_FIELD}
|
permission={UPDATE_CONTEXT_FIELD}
|
||||||
type="submit"
|
type="submit"
|
||||||
>
|
>
|
||||||
Edit context
|
Save
|
||||||
</PermissionButton>
|
</PermissionButton>
|
||||||
</ContextForm>
|
</ContextForm>
|
||||||
</FormTemplate>
|
</FormTemplate>
|
||||||
|
@ -86,7 +86,7 @@ const EditEnvironment = () => {
|
|||||||
clearErrors={clearErrors}
|
clearErrors={clearErrors}
|
||||||
>
|
>
|
||||||
<PermissionButton permission={ADMIN} type="submit">
|
<PermissionButton permission={ADMIN} type="submit">
|
||||||
Edit environment
|
Save
|
||||||
</PermissionButton>
|
</PermissionButton>
|
||||||
</EnvironmentForm>
|
</EnvironmentForm>
|
||||||
</FormTemplate>
|
</FormTemplate>
|
||||||
|
@ -172,10 +172,10 @@ const EnvironmentList = () => {
|
|||||||
<ResponsiveButton
|
<ResponsiveButton
|
||||||
onClick={navigateToCreateEnvironment}
|
onClick={navigateToCreateEnvironment}
|
||||||
maxWidth="700px"
|
maxWidth="700px"
|
||||||
tooltip="Add environment"
|
tooltip="Add new environment"
|
||||||
Icon={Add}
|
Icon={Add}
|
||||||
>
|
>
|
||||||
Add Environment
|
New Environment
|
||||||
</ResponsiveButton>
|
</ResponsiveButton>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,7 @@ const EditFeature = () => {
|
|||||||
projectId={project}
|
projectId={project}
|
||||||
type="submit"
|
type="submit"
|
||||||
>
|
>
|
||||||
Edit toggle
|
Save
|
||||||
</PermissionButton>
|
</PermissionButton>
|
||||||
</FeatureForm>
|
</FeatureForm>
|
||||||
</FormTemplate>
|
</FormTemplate>
|
||||||
|
@ -181,7 +181,7 @@ const FeatureToggleList = ({
|
|||||||
skeleton: loading,
|
skeleton: loading,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
Create feature toggle
|
New feature toggle
|
||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
@ -163,7 +163,7 @@ exports[`renders correctly with one feature 1`] = `
|
|||||||
<span
|
<span
|
||||||
className="MuiButton-label"
|
className="MuiButton-label"
|
||||||
>
|
>
|
||||||
Create feature toggle
|
New feature toggle
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@ -358,7 +358,7 @@ exports[`renders correctly with one feature without permissions 1`] = `
|
|||||||
<span
|
<span
|
||||||
className="MuiButton-label"
|
className="MuiButton-label"
|
||||||
>
|
>
|
||||||
Create feature toggle
|
New feature toggle
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -282,7 +282,7 @@ const FeatureStrategiesEnvironments = () => {
|
|||||||
environmentId={activeEnvironment.name}
|
environmentId={activeEnvironment.name}
|
||||||
permission={CREATE_FEATURE_STRATEGY}
|
permission={CREATE_FEATURE_STRATEGY}
|
||||||
>
|
>
|
||||||
Add new strategy
|
New strategy
|
||||||
</ResponsiveButton>
|
</ResponsiveButton>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
@ -293,7 +293,7 @@ const FeatureOverviewVariants = () => {
|
|||||||
permission={UPDATE_FEATURE_VARIANTS}
|
permission={UPDATE_FEATURE_VARIANTS}
|
||||||
projectId={projectId}
|
projectId={projectId}
|
||||||
>
|
>
|
||||||
Add variant
|
New variant
|
||||||
</PermissionButton>
|
</PermissionButton>
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={editable}
|
condition={editable}
|
||||||
|
@ -91,7 +91,7 @@ const EditProject = () => {
|
|||||||
validateIdUniqueness={validateIdUniqueness}
|
validateIdUniqueness={validateIdUniqueness}
|
||||||
>
|
>
|
||||||
<PermissionButton permission={UPDATE_PROJECT} type="submit">
|
<PermissionButton permission={UPDATE_PROJECT} type="submit">
|
||||||
Edit project
|
Save
|
||||||
</PermissionButton>
|
</PermissionButton>
|
||||||
</ProjectForm>
|
</ProjectForm>
|
||||||
</FormTemplate>
|
</FormTemplate>
|
||||||
|
@ -139,7 +139,7 @@ const ProjectListNew = () => {
|
|||||||
tooltip={createButtonData.title}
|
tooltip={createButtonData.title}
|
||||||
disabled={createButtonData.disabled}
|
disabled={createButtonData.disabled}
|
||||||
>
|
>
|
||||||
Add new project
|
New project
|
||||||
</ResponsiveButton>
|
</ResponsiveButton>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
@ -80,7 +80,7 @@ export const StrategiesList = () => {
|
|||||||
data-test={ADD_NEW_STRATEGY_ID}
|
data-test={ADD_NEW_STRATEGY_ID}
|
||||||
tooltip={'Add new strategy'}
|
tooltip={'Add new strategy'}
|
||||||
>
|
>
|
||||||
Add new strategy
|
New strategy
|
||||||
</PermissionButton>
|
</PermissionButton>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
@ -178,7 +178,7 @@ export const StrategyForm = ({ editMode, strategy }: IStrategyFormProps) => {
|
|||||||
color="primary"
|
color="primary"
|
||||||
style={{ display: 'block' }}
|
style={{ display: 'block' }}
|
||||||
>
|
>
|
||||||
Update
|
Save
|
||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
elseShow={
|
elseShow={
|
||||||
|
@ -62,7 +62,7 @@ exports[`renders correctly with one strategy 1`] = `
|
|||||||
<span
|
<span
|
||||||
className="MuiButton-label"
|
className="MuiButton-label"
|
||||||
>
|
>
|
||||||
Add new strategy
|
New strategy
|
||||||
<span
|
<span
|
||||||
className="MuiButton-endIcon MuiButton-iconSizeMedium"
|
className="MuiButton-endIcon MuiButton-iconSizeMedium"
|
||||||
/>
|
/>
|
||||||
@ -287,7 +287,7 @@ exports[`renders correctly with one strategy without permissions 1`] = `
|
|||||||
<span
|
<span
|
||||||
className="MuiButton-label"
|
className="MuiButton-label"
|
||||||
>
|
>
|
||||||
Add new strategy
|
New strategy
|
||||||
<span
|
<span
|
||||||
className="MuiButton-endIcon MuiButton-iconSizeMedium"
|
className="MuiButton-endIcon MuiButton-iconSizeMedium"
|
||||||
/>
|
/>
|
||||||
|
@ -75,7 +75,7 @@ const EditTagType = () => {
|
|||||||
clearErrors={clearErrors}
|
clearErrors={clearErrors}
|
||||||
>
|
>
|
||||||
<PermissionButton permission={UPDATE_TAG_TYPE} type="submit">
|
<PermissionButton permission={UPDATE_TAG_TYPE} type="submit">
|
||||||
Edit type
|
Save
|
||||||
</PermissionButton>
|
</PermissionButton>
|
||||||
</TagForm>
|
</TagForm>
|
||||||
</FormTemplate>
|
</FormTemplate>
|
||||||
|
@ -80,7 +80,7 @@ export const TagTypeList = () => {
|
|||||||
history.push('/tag-types/create')
|
history.push('/tag-types/create')
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
Add new tag type
|
New tag type
|
||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
@ -50,7 +50,7 @@ exports[`renders a list with elements correctly 1`] = `
|
|||||||
<span
|
<span
|
||||||
className="MuiButton-label"
|
className="MuiButton-label"
|
||||||
>
|
>
|
||||||
Add new tag type
|
New tag type
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
className="MuiTouchRipple-root"
|
className="MuiTouchRipple-root"
|
||||||
@ -126,7 +126,7 @@ exports[`renders an empty list correctly 1`] = `
|
|||||||
<span
|
<span
|
||||||
className="MuiButton-label"
|
className="MuiButton-label"
|
||||||
>
|
>
|
||||||
Add new tag type
|
New tag type
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user