don't show error page when not plugin for not-logged-in
This commit is contained in:
parent
68b97919cd
commit
70e97227a4
1 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,7 @@ import Button from '../widgets/buttons/button'
|
||||||
import './errorPage.scss'
|
import './errorPage.scss'
|
||||||
|
|
||||||
import {errorDefFromId, ErrorId} from '../errors'
|
import {errorDefFromId, ErrorId} from '../errors'
|
||||||
|
import {Utils} from '../utils'
|
||||||
|
|
||||||
const ErrorPage = () => {
|
const ErrorPage = () => {
|
||||||
const history = useHistory()
|
const history = useHistory()
|
||||||
|
@ -45,6 +46,10 @@ const ErrorPage = () => {
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (!Utils.isFocalboardPlugin() && errid === ErrorId.NotLoggedIn) {
|
||||||
|
handleButtonClick(errorDef.button1Redirect)
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='ErrorPage'>
|
<div className='ErrorPage'>
|
||||||
<div>
|
<div>
|
||||||
|
|
Loading…
Reference in a new issue