rename 'featureToggle' to 'isFeatureEnable' and move definition of available prerelease-features to constants.jsx

Этот коммит содержится в:
Florian Orben
2015-11-27 23:16:56 +01:00
родитель 192b606bc6
Коммит 61a35066b6
8 изменённых файлов: 30 добавлений и 45 удалений

Просмотреть файл

@@ -11,6 +11,7 @@ import * as Utils from '../utils/utils.jsx';
import Constants from '../utils/constants.jsx';
const ActionTypes = Constants.ActionTypes;
const KeyCodes = Constants.KeyCodes;
const PreReleaseFeatures = Constants.PRE_RELEASE_FEATURES;
export default class Textbox extends React.Component {
constructor(props) {
@@ -304,7 +305,7 @@ export default class Textbox extends React.Component {
render() {
let previewLink = null;
if (Utils.featureToggle('#1389')) {
if (Utils.isFeatureEnabled(PreReleaseFeatures.MARKDOWN_PREVIEW)) {
const previewLinkVisible = this.props.messageText.length > 0;
previewLink = (
<a