ui: show SELECT picker paths from the root instead of "fid — parent"
The picker option label read backwards, e.g. "EF.IMSI — 6F07 — 7F20". It now shows the path within the optgroup's root with the FIDs in order, matching the path-field convention: "EF.IMSI — 7F20/6F07", "EF.ICCID — 2FE2", "EF.PSC — 5F3A/4F22" (ADF session). Switch markers and the filter (which also matches the symbolic path) are unchanged. sw cache -> simple-v243; version stays 3.4.0.
This commit is contained in:
+4
-2
@@ -3462,9 +3462,11 @@ function rfmFileOptionsHtml(chainId, idx, list) {
|
||||
for (const [root, items] of groups) {
|
||||
html += '<optgroup label="' + escHtml(root) + '">';
|
||||
for (const it of items) {
|
||||
const parent = rfmParentPath(it.e.sym || it.e.path).replace(/^[^/]+\//, '');
|
||||
// Path within the root, FIDs in order (the optgroup carries the
|
||||
// root) - the same convention as the path field, with slashes.
|
||||
const inRoot = it.e.path.slice(it.e.root.length + 1);
|
||||
html += '<option value="' + escHtml(it.e.path) + '">' +
|
||||
escHtml(it.e.name + ' — ' + (it.e.fid || it.e.aid || '') + (parent ? ' — ' + parent : '') +
|
||||
escHtml(it.e.name + ' — ' + inRoot +
|
||||
(it.fill && it.fill.switched ? ' → ' + it.fill.method : '')) +
|
||||
'</option>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user