client/options/advanced: use a table for "Existing anonymized databases"

This commit is contained in:
Adorian Doran 2025-03-08 04:44:23 +02:00
parent 82a63a65da
commit db4c5bcac2

View File

@ -43,9 +43,13 @@ const TPL = `
<hr />
<h5>${t("database_anonymization.existing_anonymized_databases")}</h5>
<ul class="existing-anonymized-databases"></ul>
<table class="existing-anonymized-databases-table table table-stripped">
<thead>
<th>${t("database_anonymization.existing_anonymized_databases")}</th>
</thead>
<tbody class="existing-anonymized-databases">
</tbody>
</table>
</div>`;
// TODO: Deduplicate with server
@ -108,7 +112,7 @@ export default class DatabaseAnonymizationOptions extends OptionsWidget {
}
for (const { filePath } of anonymizedDatabases) {
this.$existingAnonymizedDatabases.append($("<li>").text(filePath));
this.$existingAnonymizedDatabases.append($("<tr>").append($("<td>").text(filePath)));
}
});
}