mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 19:29:56 +00:00
Session optimization (#3423)
This commit is contained in:
12
frontend/src/components/session-expired-tip.js
Normal file
12
frontend/src/components/session-expired-tip.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import React from 'react';
|
||||
import { gettext, loginUrl } from '../utils/constants';
|
||||
|
||||
function SessionExpiredTip() {
|
||||
return(
|
||||
<span className="session-expired-tip">{gettext('You are log out.')}{' '}
|
||||
<a className="action-link session-expired-link" href={`${loginUrl}?next=${encodeURIComponent(location.href)}`}>{gettext('Login again.')}</a>
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
export default SessionExpiredTip
|
Reference in New Issue
Block a user