Add max_daily_limit_gtq field to lamassu_config: Updated database schema and models to include max_daily_limit_gtq for configurable client limits. Enhanced API and frontend to support this new field, ensuring proper handling and validation in the user interface.
This commit is contained in:
parent
ae50db10c7
commit
7af0e47d48
6 changed files with 75 additions and 3 deletions
|
|
@ -105,6 +105,8 @@ window.app = Vue.createApp({
|
|||
password: '',
|
||||
selectedWallet: null,
|
||||
selectedCommissionWallet: null,
|
||||
// DCA Client Limits
|
||||
max_daily_limit_gtq: 2000,
|
||||
// SSH Tunnel settings
|
||||
use_ssh_tunnel: false,
|
||||
ssh_host: '',
|
||||
|
|
@ -183,6 +185,11 @@ window.app = Vue.createApp({
|
|||
this.configDialog.data.selectedCommissionWallet = commissionWallet
|
||||
}
|
||||
}
|
||||
|
||||
// Populate other configuration fields
|
||||
if (data) {
|
||||
this.configDialog.data.max_daily_limit_gtq = data.max_daily_limit_gtq || 2000
|
||||
}
|
||||
} catch (error) {
|
||||
// It's OK if no config exists yet
|
||||
this.lamassuConfig = null
|
||||
|
|
@ -200,6 +207,7 @@ window.app = Vue.createApp({
|
|||
source_wallet_id: this.configDialog.data.selectedWallet?.id,
|
||||
commission_wallet_id: this.configDialog.data.selectedCommissionWallet?.id,
|
||||
// SSH Tunnel settings
|
||||
max_daily_limit_gtq: this.configDialog.data.max_daily_limit_gtq,
|
||||
use_ssh_tunnel: this.configDialog.data.use_ssh_tunnel,
|
||||
ssh_host: this.configDialog.data.ssh_host,
|
||||
ssh_port: this.configDialog.data.ssh_port,
|
||||
|
|
@ -238,6 +246,8 @@ window.app = Vue.createApp({
|
|||
password: '',
|
||||
selectedWallet: null,
|
||||
selectedCommissionWallet: null,
|
||||
// DCA Client Limits
|
||||
max_daily_limit_gtq: 2000,
|
||||
// SSH Tunnel settings
|
||||
use_ssh_tunnel: false,
|
||||
ssh_host: '',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue