mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-08 15:06:08 +02:00
fixes
This commit is contained in:
parent
68570ace5c
commit
28832926e9
@ -19,7 +19,7 @@ import CompassIcon from '../../widgets/icons/compassIcon'
|
||||
import TelemetryClient, {TelemetryCategory, TelemetryActions} from '../../telemetry/telemetryClient'
|
||||
|
||||
import './cloudMessage.scss'
|
||||
const signupURL = 'http://mattermost.com/pricing'
|
||||
const signupURL = 'https://mattermost.com/pricing'
|
||||
const displayAfter = (1000 * 60 * 60 * 24) //24 hours
|
||||
|
||||
const CloudMessage = React.memo(() => {
|
||||
@ -48,9 +48,13 @@ const CloudMessage = React.memo(() => {
|
||||
}
|
||||
}
|
||||
|
||||
if (Utils.isFocalboardPlugin() || cloudMessageCanceled) {
|
||||
return null
|
||||
}
|
||||
|
||||
if (me) {
|
||||
const installTime = Date.now() - me.create_at
|
||||
if (Utils.isFocalboardPlugin() || cloudMessageCanceled || installTime < displayAfter) {
|
||||
if (installTime < displayAfter) {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
@ -60,7 +60,6 @@ const BoardPage = (props: Props): JSX.Element => {
|
||||
if (!me) {
|
||||
return
|
||||
}
|
||||
|
||||
dispatch(fetchUserBlockSubscriptions(me!.id))
|
||||
}, [me?.id])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user