Skip to content

Commit 0ee8854

Browse files
committed
fix: update module extraction logic to handle rootfull flag
1 parent c292936 commit 0ee8854

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/ui/src/views/ApplicationsCenter.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,12 +322,12 @@ function extractModulesWithUpdates(taskResult) {
322322
const updateEntry = updates.find(u => u.id === item.id);
323323
console.log("item", item);
324324
console.log("updateEntry", updateEntry);
325-
// si update trouvée, utiliser les infos de updateEntry, sinon celles de installed
325+
// if found, merge data from updateEntry into item
326326
const source = updateEntry || item;
327327
328328
modules.push({
329329
digest: source.digest || "",
330-
flags: source.flags || [],
330+
rootfull: source.flags ? source.flags.includes('rootfull') : false,
331331
id: source.id || "",
332332
logo: source.logo || "",
333333
module: source.module || "",
@@ -337,13 +337,13 @@ console.log("updateEntry", updateEntry);
337337
ui_name: source.ui_name || "",
338338
version: source.version || "",
339339
disabled_updates_reason: disabledReason,
340-
update: source.update || "" // version finale affichée comme "update"
340+
update: source.update || ""
341341
});
342342
}
343343
}
344344
}
345345
346-
// tri par id
346+
// sort by id
347347
modules.sort((a, b) => a.id.localeCompare(b.id));
348348
349349
return modules;

0 commit comments

Comments
 (0)