File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/components/ChallengeEditor Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1576,9 +1576,6 @@ class ChallengeEditor extends Component {
1576
1576
< div className = { styles . bottomContainer } >
1577
1577
{ ! isLoading && < LastSavedDisplay timeLastSaved = { draftChallenge . data . updated } /> }
1578
1578
{ ! isLoading && ( ! isActive ) && ( ! isCompleted ) && < div className = { styles . buttonContainer } >
1579
- { /* <div className={styles.button}>
1580
- <OutlineButton text={isSaving ? 'Saving...' : 'Save'} type={'success'} onClick={this.onSaveChallenge} />
1581
- </div> */ }
1582
1579
< div className = { styles . button } >
1583
1580
{ ! this . state . hasValidationErrors ? (
1584
1581
< PrimaryButton text = { isSaving ? 'Saving...' : 'Save Draft' } type = { 'info' } onClick = { this . createDraftHandler } />
@@ -1609,14 +1606,11 @@ class ChallengeEditor extends Component {
1609
1606
</ div >
1610
1607
}
1611
1608
</ div > }
1612
- { ! isLoading && isActive && < div className = { styles . buttonContainer } >
1609
+ { ( ! isLoading ) && isActive && ( ! preventCopilotFromActivatingTask ) && < div className = { styles . buttonContainer } >
1613
1610
< div className = { styles . button } >
1614
1611
< OutlineButton text = { isSaving ? 'Saving...' : 'Save' } type = { 'success' } onClick = { this . onSaveChallenge } />
1615
1612
</ div >
1616
- { (
1617
- isTask &&
1618
- ! preventCopilotFromActivatingTask
1619
- ) && (
1613
+ { isTask && (
1620
1614
< div className = { styles . button } >
1621
1615
< Tooltip content = { MESSAGE . MARK_COMPLETE } >
1622
1616
< PrimaryButton text = { 'Mark Complete' } type = { 'success' } onClick = { this . openCloseTaskConfirmation } />
You can’t perform that action at this time.
0 commit comments