refactor: expose skip-retry option and show it in rules list
This commit is contained in:
parent
dbf900a531
commit
6154b8e3cd
@ -539,6 +539,15 @@ export default function SettingsChannelAffinity(props) {
|
|||||||
dataIndex: 'ttl_seconds',
|
dataIndex: 'ttl_seconds',
|
||||||
render: (v) => <Text>{Number(v || 0) || '-'}</Text>,
|
render: (v) => <Text>{Number(v || 0) || '-'}</Text>,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: t('失败后不重试'),
|
||||||
|
dataIndex: 'skip_retry_on_failure',
|
||||||
|
render: (value) => (
|
||||||
|
<Tag color={value ? 'orange' : 'grey'} style={{ marginRight: 4 }}>
|
||||||
|
{value ? t('是') : t('否')}
|
||||||
|
</Tag>
|
||||||
|
),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: t('覆盖模板'),
|
title: t('覆盖模板'),
|
||||||
render: (_, record) => {
|
render: (_, record) => {
|
||||||
@ -1096,6 +1105,18 @@ export default function SettingsChannelAffinity(props) {
|
|||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
|
<Row gutter={16} style={{ marginTop: 12 }}>
|
||||||
|
<Col xs={24} sm={12}>
|
||||||
|
<Form.Switch
|
||||||
|
field='skip_retry_on_failure'
|
||||||
|
label={t('失败后不重试')}
|
||||||
|
/>
|
||||||
|
<Text type='tertiary' size='small'>
|
||||||
|
{t('开启后,若该规则命中且请求失败,将不会切换渠道重试。')}
|
||||||
|
</Text>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
|
||||||
<Collapse
|
<Collapse
|
||||||
keepDOM
|
keepDOM
|
||||||
activeKey={modalAdvancedActiveKey}
|
activeKey={modalAdvancedActiveKey}
|
||||||
@ -1251,18 +1272,6 @@ export default function SettingsChannelAffinity(props) {
|
|||||||
</Text>
|
</Text>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
<Row gutter={16}>
|
|
||||||
<Col xs={24} sm={12}>
|
|
||||||
<Form.Switch
|
|
||||||
field='skip_retry_on_failure'
|
|
||||||
label={t('失败后不重试')}
|
|
||||||
/>
|
|
||||||
<Text type='tertiary' size='small'>
|
|
||||||
{t('开启后,若该规则命中且请求失败,将不会切换渠道重试。')}
|
|
||||||
</Text>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</Collapse.Panel>
|
</Collapse.Panel>
|
||||||
</Collapse>
|
</Collapse>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user