mirror of
https://github.com/wassname/talk.git
synced 2026-07-27 11:28:12 +08:00
Merge branch 'terms-and-conditions' of github.com:coralproject/talk into terms-and-conditions
* 'terms-and-conditions' of github.com:coralproject/talk: (136 commits) Remaining rename Give descriptive key for slot elements and use it instead of talkPluginName Add back missing tutorial removed unused plugin from directory expanded fix to staff replies Fix notification responsiveness Profile my comments responsive fixes Notification fixes Remove italic styling from blockquote Better disabled detection Disable hover on touch devices docs update Let browser insert text Support nested feature instance Rename buttons to feature Add classNames for styling Shortcut support Fix append new line after node.. Better selection behavior Remove all unwanted style attr ...
This commit is contained in:
@@ -4,8 +4,6 @@ import { t } from 'plugin-api/beta/client/services';
|
||||
import styles from './TermsAndConditionsField.css';
|
||||
import cn from 'classnames';
|
||||
|
||||
const pluginName = 'talk-plugin-auth-checkbox';
|
||||
|
||||
const TermsLink = () => (
|
||||
<a
|
||||
className={styles.link}
|
||||
@@ -31,16 +29,15 @@ class TermsAndConditionsField extends React.Component {
|
||||
id = 'terms-and-conditions';
|
||||
|
||||
componentWillMount() {
|
||||
this.props.indicateBlockerOn(pluginName);
|
||||
this.props.indicateBlocker();
|
||||
}
|
||||
|
||||
onChange = ({ target: { checked } }) => {
|
||||
this.setState({ checked });
|
||||
if (checked) {
|
||||
this.setState(() => ({ checked }));
|
||||
this.props.indicateBlockerOff(pluginName);
|
||||
this.props.indicateBlockerResolved();
|
||||
} else {
|
||||
this.setState(() => ({ checked }));
|
||||
this.props.indicateBlockerOn(pluginName);
|
||||
this.props.indicateBlocker();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user