Skip to content

Commit

Permalink
Remove scheduling for non-versioned segment overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Nov 19, 2024
1 parent d39ae8a commit 574bd40
Showing 1 changed file with 32 additions and 31 deletions.
63 changes: 32 additions & 31 deletions frontend/web/components/modals/CreateFlag.js
Original file line number Diff line number Diff line change
Expand Up @@ -1493,37 +1493,38 @@ const CreateFlag = class extends Component {
'Manage segment overrides',
),
<>
{!is4Eyes && (
<>
<Button
feature='SCHEDULE_FLAGS'
theme='secondary'
onClick={() =>
saveFeatureSegments(
true,
)
}
className='mr-2'
type='button'
data-test='create-change-request'
id='create-change-request-btn'
disabled={
isSaving ||
!name ||
invalid ||
!savePermission
}
>
{isSaving
? existingChangeRequest
? 'Updating Change Request'
: 'Scheduling Update'
: existingChangeRequest
? 'Update Change Request'
: 'Schedule Update'}
</Button>
</>
)}
{!is4Eyes &&
isVersioned && (
<>
<Button
feature='SCHEDULE_FLAGS'
theme='secondary'
onClick={() =>
saveFeatureSegments(
true,
)
}
className='mr-2'
type='button'
data-test='create-change-request'
id='create-change-request-btn'
disabled={
isSaving ||
!name ||
invalid ||
!savePermission
}
>
{isSaving
? existingChangeRequest
? 'Updating Change Request'
: 'Scheduling Update'
: existingChangeRequest
? 'Update Change Request'
: 'Schedule Update'}
</Button>
</>
)}
<Button
onClick={
saveFeatureSegments
Expand Down

0 comments on commit 574bd40

Please sign in to comment.