1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 08:53:14 +00:00

update LOGOUT_URL; (#4785)

Co-authored-by: lian <lian@seafile.com>
This commit is contained in:
lian
2021-01-12 16:19:38 +08:00
committed by GitHub
parent 3600537e12
commit d75beba8bd
5 changed files with 8 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { Utils } from '../../utils/utils';
import { seafileAPI } from '../../utils/seafile-api';
import { siteRoot, gettext, appAvatarURL } from '../../utils/constants';
import { siteRoot, gettext, appAvatarURL, logoutUrl } from '../../utils/constants';
import toaster from '../toast';
const propTypes = {
@@ -164,7 +164,7 @@ class Account extends Component {
</div>
<a href={siteRoot + 'profile/'} className="item">{gettext('Settings')}</a>
{this.renderMenu()}
<a href={siteRoot + 'accounts/logout/'} className="item">{gettext('Log out')}</a>
<a href={logoutUrl} className="item">{gettext('Log out')}</a>
</div>
</div>
</div>

View File

@@ -1,10 +1,10 @@
import React from 'react';
import { siteRoot, gettext } from '../../utils/constants';
import { gettext, logoutUrl } from '../../utils/constants';
export default function Logout() {
return (
<a className="logout-icon" href={`${siteRoot}accounts/logout/`} title={gettext('Log out')}>
<a className="logout-icon" href={logoutUrl} title={gettext('Log out')}>
<i className="sf3-font sf3-font-logout" style={{fontSize: '24px'}}></i>
</a>
);
}
}