Compare commits

...

2 Commits

2 changed files with 8 additions and 2 deletions

View File

@ -31,11 +31,17 @@ class OpenTour extends React.Component {
return TourConfig.TourUrlList.indexOf(path) !== -1 || path === "";
};
handleTourClick = () => {
TourConfig.setIsTourVisible(true);
const event = new Event("storageTourChanged");
window.dispatchEvent(event);
};
render() {
return (
this.canTour() ?
<Tooltip title="Click to open tour">
<div className="select-box" style={{display: Setting.isMobile() ? "none" : null, ...this.props.style}} onClick={() => TourConfig.setIsTourVisible(true)} >
<div className="select-box" style={{display: Setting.isMobile() ? "none" : null, ...this.props.style}} onClick={this.handleTourClick}>
<QuestionCircleOutlined style={{fontSize: "24px"}} />
</div>
</Tooltip>

View File

@ -82,7 +82,7 @@ export function renderPasswordPopover(options, password) {
}
export function checkPasswordComplexity(password, options) {
if (password.length === 0) {
if (!password?.length) {
return i18next.t("login:Please input your password!");
}