feat(clients): hide disabled inbounds in the client form selector
The attach-inbounds select in the client add/edit modal listed every inbound, so panels with many disabled inbounds had to scroll past dead entries. InboundOption now carries the inbound's enable flag and the form drops disabled inbounds from the options, keeping ones the client is already attached to so edit mode still renders existing assignments. Closes #5645
This commit is contained in:
7 files changed
+20
-2
No files matched your search
@@ -1824,6 +1824,10 @@
|
||||
},
|
||||
"InboundOption": {
|
||||
"properties": {
|
||||
"enable": {
|
||||
"example": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"id": {
|
||||
"example": 1,
|
||||
"type": "integer"
|
||||
@@ -1880,6 +1884,7 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"enable",
|
||||
"id",
|
||||
"port",
|
||||
"protocol",
|
||||
@@ -2795,6 +2800,7 @@
|
||||
"success": true,
|
||||
"obj": [
|
||||
{
|
||||
"enable": true,
|
||||
"id": 1,
|
||||
"listen": "",
|
||||
"nodeAddress": "",
|
||||
|
||||
@@ -399,6 +399,7 @@ export const EXAMPLES: Record<string, unknown> = {
|
||||
"xver": 0
|
||||
},
|
||||
"InboundOption": {
|
||||
"enable": true,
|
||||
"id": 1,
|
||||
"listen": "",
|
||||
"nodeAddress": "",
|
||||
|
||||
@@ -1798,6 +1798,10 @@ export const SCHEMAS: Record<string, unknown> = {
|
||||
},
|
||||
"InboundOption": {
|
||||
"properties": {
|
||||
"enable": {
|
||||
"example": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"id": {
|
||||
"example": 1,
|
||||
"type": "integer"
|
||||
@@ -1854,6 +1858,7 @@ export const SCHEMAS: Record<string, unknown> = {
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"enable",
|
||||
"id",
|
||||
"port",
|
||||
"protocol",
|
||||
|
||||
Loaded 3 of 7 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user