Skip to content

Removed the Save button #930

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/ChallengeEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1178,9 +1178,9 @@ class ChallengeEditor extends Component {
<div className={styles.bottomContainer}>
{!isLoading && <LastSavedDisplay timeLastSaved={draftChallenge.data.updated} />}
{!isLoading && (!isActive) && (!isCompleted) && <div className={styles.buttonContainer}>
<div className={styles.button}>
{/* <div className={styles.button}>
<OutlineButton text={isSaving ? 'Saving...' : 'Save'} type={'success'} onClick={this.onSaveChallenge} />
</div>
</div> */}
<div className={styles.button}>
<PrimaryButton text={'Save Draft'} type={'info'} onClick={this.createDraftHandler} />
</div>
Expand All @@ -1189,9 +1189,9 @@ class ChallengeEditor extends Component {
</div>}
</div>}
{!isLoading && isActive && <div className={styles.buttonContainer}>
<div className={styles.button}>
{/* <div className={styles.button}>
<OutlineButton text={isSaving ? 'Saving...' : 'Save'} type={'success'} onClick={this.onSaveChallenge} />
</div>
</div> */}
{isTask && (
<div className={styles.button}>
<PrimaryButton text={'Close Task'} type={'danger'} onClick={this.openCloseTaskConfirmation} />
Expand Down