Add testnet warning (#880)
* Add testnet warning * Add watermarks to posts * Call the test environment the Sandbox
This commit is contained in:
parent
775b5e6578
commit
3663ee57f3
7 changed files with 81 additions and 9 deletions
|
@ -10,6 +10,7 @@ import {isObj, hasProp} from 'lib/type-guards'
|
|||
import {networkRetry} from 'lib/async/retry'
|
||||
import {z} from 'zod'
|
||||
import {RootStoreModel} from './root-store'
|
||||
import {IS_PROD} from 'lib/constants'
|
||||
|
||||
export type ServiceDescription = DescribeServer.OutputSchema
|
||||
|
||||
|
@ -104,6 +105,13 @@ export class SessionModel {
|
|||
return this.accounts.filter(acct => acct.did !== this.data?.did)
|
||||
}
|
||||
|
||||
get isSandbox() {
|
||||
if (!this.data) {
|
||||
return false
|
||||
}
|
||||
return !IS_PROD(this.data.service)
|
||||
}
|
||||
|
||||
serialize(): unknown {
|
||||
return {
|
||||
data: this.data,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue