WA-521 Adding feature flag for removal users when the user to remove is the executor
This commit is contained in:
parent
be5398eafc
commit
6dd4c15533
|
@ -1,9 +1,10 @@
|
|||
// @flow
|
||||
import { TX_SERVICE_HOST, ENABLED_TX_SERVICE_MODULES } from '~/config/names'
|
||||
import { TX_SERVICE_HOST, ENABLED_TX_SERVICE_MODULES, ENABLED_TX_SERVICE_REMOVAL_SENDER } from '~/config/names'
|
||||
|
||||
const devConfig = {
|
||||
[TX_SERVICE_HOST]: 'http://localhost:8000/api/v1/',
|
||||
[ENABLED_TX_SERVICE_MODULES]: false,
|
||||
[ENABLED_TX_SERVICE_REMOVAL_SENDER]: false,
|
||||
}
|
||||
|
||||
export default devConfig
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// @flow
|
||||
import { ensureOnce } from '~/utils/singleton'
|
||||
import { TX_SERVICE_HOST, ENABLED_TX_SERVICE_MODULES } from '~/config/names'
|
||||
import { TX_SERVICE_HOST, ENABLED_TX_SERVICE_MODULES, ENABLED_TX_SERVICE_REMOVAL_SENDER } from '~/config/names'
|
||||
import devConfig from './development'
|
||||
import testConfig from './testing'
|
||||
import prodConfig from './production'
|
||||
|
@ -32,3 +32,9 @@ export const allowedModulesInTxHistoryService = () => {
|
|||
|
||||
return config[ENABLED_TX_SERVICE_MODULES]
|
||||
}
|
||||
|
||||
export const allowedRemoveSenderInTxHistoryService = () => {
|
||||
const config = getConfig()
|
||||
|
||||
return config[ENABLED_TX_SERVICE_REMOVAL_SENDER]
|
||||
}
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
|
||||
export const TX_SERVICE_HOST = 'tsh'
|
||||
export const ENABLED_TX_SERVICE_MODULES = 'tsm'
|
||||
export const ENABLED_TX_SERVICE_REMOVAL_SENDER = 'trs'
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
// @flow
|
||||
import { TX_SERVICE_HOST, ENABLED_TX_SERVICE_MODULES } from '~/config/names'
|
||||
import { TX_SERVICE_HOST, ENABLED_TX_SERVICE_MODULES, ENABLED_TX_SERVICE_REMOVAL_SENDER } from '~/config/names'
|
||||
|
||||
const prodConfig = {
|
||||
[TX_SERVICE_HOST]: 'https://safe-transaction-history.dev.gnosisdev.com/api/v1/',
|
||||
[ENABLED_TX_SERVICE_MODULES]: false,
|
||||
[ENABLED_TX_SERVICE_REMOVAL_SENDER]: false,
|
||||
}
|
||||
|
||||
export default prodConfig
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
// @flow
|
||||
import { TX_SERVICE_HOST, ENABLED_TX_SERVICE_MODULES } from '~/config/names'
|
||||
import { TX_SERVICE_HOST, ENABLED_TX_SERVICE_MODULES, ENABLED_TX_SERVICE_REMOVAL_SENDER } from '~/config/names'
|
||||
|
||||
const testConfig = {
|
||||
[TX_SERVICE_HOST]: 'http://localhost:8000/api/v1/',
|
||||
[ENABLED_TX_SERVICE_MODULES]: false,
|
||||
[ENABLED_TX_SERVICE_REMOVAL_SENDER]: false,
|
||||
}
|
||||
|
||||
export default testConfig
|
||||
|
|
Loading…
Reference in New Issue