Merge pull request #1424 from mattermost/plt-1113
PLT-1113 Tutorial tip dots are now clickable
Этот коммит содержится в:
@@ -51,21 +51,22 @@ export default class TutorialTip extends React.Component {
|
|||||||
const dots = [];
|
const dots = [];
|
||||||
if (this.props.screens.length > 1) {
|
if (this.props.screens.length > 1) {
|
||||||
for (let i = 0; i < this.props.screens.length; i++) {
|
for (let i = 0; i < this.props.screens.length; i++) {
|
||||||
|
let className = 'circle';
|
||||||
if (i === this.state.currentScreen) {
|
if (i === this.state.currentScreen) {
|
||||||
dots.push(
|
className += ' active';
|
||||||
<div
|
|
||||||
className='circle active'
|
|
||||||
key={'dotactive' + i}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
dots.push(
|
|
||||||
<div
|
|
||||||
className='circle'
|
|
||||||
key={'dotinactive' + i}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dots.push(
|
||||||
|
<a
|
||||||
|
href='#'
|
||||||
|
key={'dotactive' + i}
|
||||||
|
className={className}
|
||||||
|
onClick={(e) => { //eslint-disable-line no-loop-func
|
||||||
|
e.preventDefault();
|
||||||
|
this.setState({currentScreen: i});
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user