forked from mozilla/testpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mozilla#1625 from dannycoates/1302-completed-exp-page
completed experiment page
- Loading branch information
Showing
14 changed files
with
246 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import React from 'react'; | ||
|
||
export default class ExperimentEolDialog extends React.Component { | ||
|
||
render() { | ||
const { title } = this.props; | ||
return ( | ||
<div className="modal-container"> | ||
<div id="retire-dialog-modal" className="modal feedback-modal modal-bounce-in"> | ||
<header> | ||
<h3 className="title warning" data-l10n-id="disableHeader">Disable Experiment?</h3> | ||
</header> | ||
<form> | ||
|
||
<div className="modal-content modal-form"> | ||
<p data-l10n-id="eolDisableMessage" data-l10n-args={JSON.stringify({ title })} className="centered">The {title} experiment has ended. Once you uninstall it you won't be able to re-install it through Test Pilot again.</p> | ||
</div> | ||
<div className="modal-actions"> | ||
<button onClick={e => this.proceed(e)} data-l10n-id="disableExperiment" data-l10n-args={JSON.stringify({ title })} className="submit button warning large">Disable {title}</button> | ||
<a onClick={e => this.cancel(e)} data-l10n-id="retireCancelButton" className="cancel modal-escape" href="">Cancel</a> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
proceed(e) { | ||
e.preventDefault(); | ||
this.props.onSubmit(e); | ||
} | ||
|
||
cancel(e) { | ||
e.preventDefault(); | ||
this.props.onCancel(); | ||
} | ||
} | ||
|
||
ExperimentEolDialog.propTypes = { | ||
title: React.PropTypes.string, | ||
onCancel: React.PropTypes.func, | ||
onSubmit: React.PropTypes.func | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.