mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
optimized-error-handle (#4366)
* optimized-error-handle * update css * optimized code
This commit is contained in:
12
frontend/src/components/permission-denied-tip.js
Normal file
12
frontend/src/components/permission-denied-tip.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import React from 'react';
|
||||
import { gettext, loginUrl } from '../utils/constants';
|
||||
|
||||
function PermissionDeniedTip() {
|
||||
return(
|
||||
<span className="error">{gettext('Permission denied. Please try')}{' '}
|
||||
<a className="action-link p-0" href={`${loginUrl}?next=${encodeURIComponent(location.href)}`}>{gettext('login again.')}</a>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
export default PermissionDeniedTip;
|
Reference in New Issue
Block a user