File tree Expand file tree Collapse file tree
frontend/web/components/modals/create-feature Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,9 +49,8 @@ import FeatureLimitAlert from './FeatureLimitAlert'
4949import FeatureUpdateSummary from './FeatureUpdateSummary'
5050import FeatureNameInput from './FeatureNameInput'
5151import {
52- EnvironmentPermission ,
53- EnvironmentPermissionDescriptions ,
54- ProjectPermission ,
52+ EnvironmentPermission ,
53+ ProjectPermission ,
5554} from 'common/types/permissions.types'
5655
5756const Index = class extends Component {
@@ -1149,7 +1148,6 @@ const Index = class extends Component {
11491148 tags = { projectFlag . tags }
11501149 permission = { Utils . getManageFeaturePermission (
11511150 is4Eyes ,
1152- identity ,
11531151 ) }
11541152 id = {
11551153 this . props . environmentId
@@ -1205,7 +1203,6 @@ const Index = class extends Component {
12051203 savePermission ,
12061204 Utils . getManageFeaturePermissionDescription (
12071205 is4Eyes ,
1208- identity ,
12091206 ) ,
12101207 < Button
12111208 onClick = { ( ) =>
@@ -1896,14 +1893,17 @@ const Index = class extends Component {
18961893 tags = { projectFlag . tags }
18971894 permission = { Utils . getManageFeaturePermission (
18981895 is4Eyes ,
1899- identity ,
19001896 ) }
19011897 id = { this . props . environmentId }
19021898 >
19031899 { ( { permission : savePermission } ) =>
19041900 Utils . renderWithPermission (
19051901 savePermission ,
1906- EnvironmentPermissionDescriptions . UPDATE_FEATURE_STATE ,
1902+ Constants . environmentPermissions (
1903+ Utils . getManageFeaturePermission (
1904+ is4Eyes ,
1905+ ) ,
1906+ ) ,
19071907 < div >
19081908 < Button
19091909 onClick = { ( ) => saveFeatureValue ( ) }
You can’t perform that action at this time.
0 commit comments