Add contact card to admin
This commit is contained in:
parent
163473a7ee
commit
d345cc018c
4 changed files with 73 additions and 4 deletions
|
|
@ -156,7 +156,7 @@ determineConfigCategory : String -> Maybe Category
|
||||||
determineConfigCategory configCode =
|
determineConfigCategory configCode =
|
||||||
if List.member configCode [ "definition", "setup", "cashOut", "commissions", "balanceAlerts" ] then
|
if List.member configCode [ "definition", "setup", "cashOut", "commissions", "balanceAlerts" ] then
|
||||||
Just MachineSettingsCat
|
Just MachineSettingsCat
|
||||||
else if List.member configCode [ "walletSettings", "notifications", "compliance", "coinAtmRadar", "terms" ] then
|
else if List.member configCode [ "walletSettings", "notifications", "compliance", "coinAtmRadar", "terms", "operatorInfo" ] then
|
||||||
Just GlobalSettingsCat
|
Just GlobalSettingsCat
|
||||||
else
|
else
|
||||||
Nothing
|
Nothing
|
||||||
|
|
@ -252,6 +252,7 @@ view route invalidGroups =
|
||||||
, configLink "compliance" "Compliance"
|
, configLink "compliance" "Compliance"
|
||||||
, configLink "coinAtmRadar" "Coin ATM Radar"
|
, configLink "coinAtmRadar" "Coin ATM Radar"
|
||||||
, configLink "terms" "Terms and Conditions"
|
, configLink "terms" "Terms and Conditions"
|
||||||
|
, configLink "operatorInfo" "Operator Info"
|
||||||
]
|
]
|
||||||
, ll ( "Third Party Services", AccountCat, AccountRoute "bitgo", True )
|
, ll ( "Third Party Services", AccountCat, AccountRoute "bitgo", True )
|
||||||
[ ( "BitGo", AccountRoute "bitgo", True )
|
[ ( "BitGo", AccountRoute "bitgo", True )
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,18 @@
|
||||||
"termsAcceptButtonText",
|
"termsAcceptButtonText",
|
||||||
"termsCancelButtonText"
|
"termsCancelButtonText"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "operatorInfo",
|
||||||
|
"display": "Operator Info",
|
||||||
|
"cryptoScope": "global",
|
||||||
|
"machineScope": "global",
|
||||||
|
"fields": [
|
||||||
|
"operatorInfoActive",
|
||||||
|
"operatorInfoEmail",
|
||||||
|
"operatorInfoName",
|
||||||
|
"operatorInfoPhone"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"fields": [
|
"fields": [
|
||||||
|
|
@ -921,6 +933,48 @@
|
||||||
"termsScreenActive"
|
"termsScreenActive"
|
||||||
],
|
],
|
||||||
"fieldValidation": []
|
"fieldValidation": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "operatorInfoActive",
|
||||||
|
"displayBottom": "Info card enabled",
|
||||||
|
"fieldType": "onOff",
|
||||||
|
"fieldClass": null,
|
||||||
|
"fieldValidation": [],
|
||||||
|
"default": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "operatorInfoName",
|
||||||
|
"displayBottom": "Name",
|
||||||
|
"displayTopCount": 0,
|
||||||
|
"fieldType": "string",
|
||||||
|
"fieldClass": null,
|
||||||
|
"default": "",
|
||||||
|
"enabledIfAny": [
|
||||||
|
"operatorInfoActive"
|
||||||
|
],
|
||||||
|
"fieldValidation": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "operatorInfoEmail",
|
||||||
|
"displayBottom": "Email",
|
||||||
|
"displayTopCount": 0,
|
||||||
|
"fieldType": "string",
|
||||||
|
"fieldClass": "email",
|
||||||
|
"enabledIfAny": [
|
||||||
|
"operatorInfoActive"
|
||||||
|
],
|
||||||
|
"fieldValidation": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "operatorInfoPhone",
|
||||||
|
"displayBottom": "Phone",
|
||||||
|
"displayTopCount": 0,
|
||||||
|
"fieldType": "string",
|
||||||
|
"fieldClass": null,
|
||||||
|
"enabledIfAny": [
|
||||||
|
"operatorInfoActive"
|
||||||
|
],
|
||||||
|
"fieldValidation": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,13 @@ function poll (req, res, next) {
|
||||||
twoWayMode: config.cashOutEnabled,
|
twoWayMode: config.cashOutEnabled,
|
||||||
zeroConfLimit: config.zeroConfLimit,
|
zeroConfLimit: config.zeroConfLimit,
|
||||||
reboot,
|
reboot,
|
||||||
hasLightning
|
hasLightning,
|
||||||
|
operatorInfo: {
|
||||||
|
active: config.operatorInfoActive,
|
||||||
|
name: config.operatorInfoName,
|
||||||
|
phone: config.operatorInfoPhone,
|
||||||
|
email: config.operatorInfoEmail
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (response.idVerificationEnabled) {
|
if (response.idVerificationEnabled) {
|
||||||
|
|
|
||||||
|
|
@ -37230,11 +37230,15 @@ var _user$project$NavBar$determineConfigCategory = function (configCode) {
|
||||||
_1: {
|
_1: {
|
||||||
ctor: '::',
|
ctor: '::',
|
||||||
_0: 'terms',
|
_0: 'terms',
|
||||||
|
_1: {
|
||||||
|
ctor: '::',
|
||||||
|
_0: 'operatorInfo',
|
||||||
_1: {ctor: '[]'}
|
_1: {ctor: '[]'}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}) ? _elm_lang$core$Maybe$Just(_user$project$CoreTypes$GlobalSettingsCat) : _elm_lang$core$Maybe$Nothing);
|
}) ? _elm_lang$core$Maybe$Just(_user$project$CoreTypes$GlobalSettingsCat) : _elm_lang$core$Maybe$Nothing);
|
||||||
};
|
};
|
||||||
var _user$project$NavBar$allClear = F2(
|
var _user$project$NavBar$allClear = F2(
|
||||||
|
|
@ -37679,11 +37683,15 @@ var _user$project$NavBar$view = F2(
|
||||||
_1: {
|
_1: {
|
||||||
ctor: '::',
|
ctor: '::',
|
||||||
_0: A2(configLink, 'terms', 'Terms and Conditions'),
|
_0: A2(configLink, 'terms', 'Terms and Conditions'),
|
||||||
|
_1: {
|
||||||
|
ctor: '::',
|
||||||
|
_0: A2(configLink, 'operatorInfo', 'Operator Info'),
|
||||||
_1: {ctor: '[]'}
|
_1: {ctor: '[]'}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
_1: {
|
_1: {
|
||||||
ctor: '::',
|
ctor: '::',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue