mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-17 15:47:14 +00:00
fix(inbounds): allow negative subSortIndex for subscription order (#6465)
* fix(inbounds): allow negative subSortIndex for subscription order Preserve explicitly set negative indices so primary inbounds can sort ahead of the default without renumbering peers; keep 0/omitted → 1. * fix(inbounds): gofumpt model.go and trim subSortIndex comments --------- Co-authored-by: mrchatam <287639636+mrchatam@users.noreply.github.com>
This commit is contained in:
@@ -697,7 +697,7 @@ export default function InboundFormModal({
|
||||
t('pages.inbounds.form.subSortIndexHelp'),
|
||||
)}
|
||||
>
|
||||
<InputNumber min={1} />
|
||||
<InputNumber />
|
||||
</FormField>
|
||||
|
||||
{protocol === Protocols.VLESS && (
|
||||
|
||||
@@ -119,7 +119,7 @@ export default function InboundList({
|
||||
);
|
||||
|
||||
const hasAnySubSortIndex = useMemo(
|
||||
() => dbInbounds.some((i) => (i.subSortIndex ?? 1) > 1),
|
||||
() => dbInbounds.some((i) => (i.subSortIndex ?? 1) !== 1),
|
||||
[dbInbounds],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user