You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
535 B
20 lines
535 B
import { model, Model } from '@core/core'; |
|
@model() |
|
export class PoolEditModel extends Model { |
|
static xtype = 'dec.dcm.model.connection.plugin.redis.components.pool_edit' |
|
state() { |
|
return { |
|
blockWhenExhausted: true, |
|
lifo: true, |
|
}; |
|
} |
|
|
|
actions = { |
|
setBlockWhenExhausted:(blockWhenExhausted: boolean) => { |
|
this.model.blockWhenExhausted = blockWhenExhausted; |
|
}, |
|
setLifo: (lifo: boolean) => { |
|
this.model.lifo = lifo; |
|
}, |
|
} |
|
}
|
|
|